adding ulog to send messages to the user log stream

This commit is contained in:
Daniel Larimer 2014-06-19 11:19:22 -04:00
parent 9002b02469
commit 7a51b73680

View file

@ -97,6 +97,18 @@ namespace fc
} \
} while (0)
/**
* Sends the log message to a special 'user' log stream designed for messages that
* the end user may like to see.
*/
#define ulog( FORMAT, ... ) \
do { \
if( (fc::logger::get("user")).is_enabled( fc::log_level::debug ) ) { \
(fc::logger::get("user")).log( FC_LOG_MESSAGE( debug, FORMAT, __VA_ARGS__ ) ); \
} \
} while (0)
#define ilog( FORMAT, ... ) \
do { \
if( (fc::logger::get(DEFAULT_LOGGER)).is_enabled( fc::log_level::info ) ) { \