#include <logger.hpp>
Public Types | |
typedef boost::shared_ptr< LoggerInterface > | logger_ptr |
Public Member Functions | |
virtual | ~Logger () |
Static Public Member Functions | |
static LoggerInterface const & | instance () |
Get the current Logger object. | |
static void | push_logger (logger_ptr p) |
Push a new Logger object onto the stack. | |
static void | pop_logger () |
Pop the topmost Logger object from the stack. | |
Protected Member Functions | |
Logger () |
The Logger is actually an aggregate class, containing a stack of Logger objects, each exposing a log() and error() method. This class makes it possible to control all non-essential library output centrally, and thus allows library users to quickly and easily change the default logging/error-handling behaviour of the library.
To override default logging behaviour, push a new Logger object onto the stack, using the push_logger() method. Likewise, use the pop_logger() method to revert to an older logging behaviour.
typedef boost::shared_ptr<LoggerInterface> logger_ptr |
virtual ~Logger | ( | ) | [virtual] |
Logger | ( | ) | [protected] |
LOGGING::LoggerInterface const & instance | ( | ) | [static] |
Get the current Logger object.
static void push_logger | ( | logger_ptr | p | ) | [static] |
static void pop_logger | ( | ) | [static] |