Boost logo

Boost Users :

Subject: [Boost-users] [log] Retrieving the current trivial severity level
From: Chris Stylianou (chris5287_at_[hidden])
Date: 2013-08-20 07:55:19


Is there any method of retrieve the current severity level from a
"boost::log::sources::severity_logger_mt<boost::log::trivial::severity_level>"
logger.

I would like to store the current severity level in a temporary variable,
upgrade it to a new level using "BOOST_LOG_SEV(logger::get(),
boost::log::trivial::trace)" to write a trace-type message, and then
downgrade the logger back to the previous setting by recalling
"BOOST_LOG_SEV(logger::get(), temporaryVariable)"

--
View this message in context: http://boost.2283326.n4.nabble.com/log-Retrieving-the-current-trivial-severity-level-tp4650901.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net