boost::logging::logger_base< gather_msg, write_msg, dummy > Class Template Reference

logger base class. More...

Inheritance diagram for boost::logging::logger_base< gather_msg, write_msg, dummy >:
[legend]
Collaboration diagram for boost::logging::logger_base< gather_msg, write_msg, dummy >:
[legend]

List of all members.

Public Member Functions

void mark_as_initialized ()
 Marks this logger as initialized.


Detailed Description

template<class gather_msg, class write_msg, class dummy = override>
class boost::logging::logger_base< gather_msg, write_msg, dummy >

logger base class.

Member Function Documentation

template<class gather_msg, class write_msg, class dummy = override>
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();


The documentation for this class was generated from the following file:

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback