#include <MsgHandler.h>
Inheritance diagram for MsgLogger::MsgHandler:
Public Member Functions | |
virtual | ~MsgHandler () |
virtual void | setFormatter (MsgFormatter *formatter) |
attaches the formatter, will be owned by handler | |
virtual void | setLevel (MsgLogLevel level) |
set the logger level, messages with the level below this won't be logged | |
virtual bool | logging (MsgLogLevel sev) const |
check if the specified level will log any message | |
virtual bool | log (const MsgLogRecord &record) const =0 |
get the stream for the specified log level | |
Protected Member Functions | |
MsgHandler () | |
MsgFormatter & | formatter () const |
This software was developed for the BaBar collaboration. If you use all or part of it, please give an appropriate acknowledgement.
Copyright (C) 2005 SLAC
Definition at line 82 of file MsgHandler.h.
MsgLogger::MsgHandler::~MsgHandler | ( | ) | [virtual] |
Definition at line 57 of file MsgHandler.cpp.
MsgLogger::MsgHandler::MsgHandler | ( | ) | [protected] |
Definition at line 50 of file MsgHandler.cpp.
MsgFormatter & MsgLogger::MsgHandler::formatter | ( | ) | const [protected] |
Definition at line 86 of file MsgHandler.cpp.
Referenced by MsgLogger::MsgHandlerStdStreams::log(), and setFormatter().
virtual bool MsgLogger::MsgHandler::log | ( | const MsgLogRecord & | record | ) | const [pure virtual] |
bool MsgLogger::MsgHandler::logging | ( | MsgLogLevel | sev | ) | const [virtual] |
check if the specified level will log any message
Definition at line 79 of file MsgHandler.cpp.
Referenced by MsgLogger::MsgHandlerStdStreams::log().
void MsgLogger::MsgHandler::setFormatter | ( | MsgFormatter * | formatter | ) | [virtual] |
attaches the formatter, will be owned by handler
Definition at line 64 of file MsgHandler.cpp.
References formatter().
void MsgLogger::MsgHandler::setLevel | ( | MsgLogLevel | level | ) | [virtual] |
set the logger level, messages with the level below this won't be logged
Definition at line 72 of file MsgHandler.cpp.