Public Member Functions | |
void | mark_as_initialized () |
Marks this logger as initialized. |
void boost::logging::logger_base< gather_msg, write_msg, dummy >::mark_as_initialized | ( | ) | [inline] |
Marks this logger as initialized.
You might log messages before the logger is initialized. In this case, they are cached, and will be written to the logger only when you mark it as "initialized"
Example:
// the logger BOOST_DEFINE_LOG(g_l, logger_type) // marking the logger as initialized g_l()->mark_as_initialized();