#include <MsgLogger.h>
Public Member Functions | |
MsgLogger (const std::string &name="") | |
~MsgLogger () | |
void | setLevel (MsgLogLevel level) |
set the logger level, messages with the level below this won't be logged | |
void | propagate (bool flag) |
define whether or not we need messages propagated to ancestors | |
void | addHandler (MsgHandler *handler) |
add a handler for the messages, takes ownership of the object | |
bool | logging (MsgLogLevel sev) const |
check if the specified level will log any message | |
bool | log (const MsgLogRecord &record) const |
get the stream for the specified log level |
Note that this class is just a kind of smart poiner class for the real objects of the class MsgLoggerImpl which do real job.
This software was developed for the BaBar collaboration. If you use all or part of it, please give an appropriate acknowledgment.
Copyright (C) 2005 SLAC
Definition at line 83 of file MsgLogger.h.
MsgLogger::MsgLogger::MsgLogger | ( | const std::string & | name = "" |
) |
MsgLogger::MsgLogger::~MsgLogger | ( | ) | [inline] |
Definition at line 94 of file MsgLogger.h.
void MsgLogger::MsgLogger::addHandler | ( | MsgHandler * | handler | ) |
add a handler for the messages, takes ownership of the object
bool MsgLogger::MsgLogger::log | ( | const MsgLogRecord & | record | ) | const |
get the stream for the specified log level
bool MsgLogger::MsgLogger::logging | ( | MsgLogLevel | sev | ) | const |
check if the specified level will log any message
void MsgLogger::MsgLogger::propagate | ( | bool | flag | ) |
define whether or not we need messages propagated to ancestors
void MsgLogger::MsgLogger::setLevel | ( | MsgLogLevel | level | ) |
set the logger level, messages with the level below this won't be logged