MsgLogger Namespace Reference


Classes

class  MsgFormatter
class  MsgHandler
class  MsgHandlerStdStreams
class  MsgLogger
class  MsgLoggerImpl
class  MsgLogLevel
class  MsgLogRecord
class  MsgLogStream

Functions

std::ostream & operator<< (std::ostream &o, MsgLogLevel sev)
 MsgLogger (const std::string &name)
void setLevel (MsgLogLevel level)
 set the logger level, messages with the level below this won't be logged
void propagate (bool flag)
 define wheter 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


Function Documentation

std::ostream& MsgLogger::operator<< ( std::ostream &  o,
MsgLogLevel  sev 
) [inline]

Definition at line 143 of file MsgLogLevel.h.

References MsgLogger::MsgLogLevel::levelName().

MsgLogger::MsgLogger ( const std::string &  name  ) 

Definition at line 50 of file MsgLogger.cpp.

Referenced by MsgLogger::MsgLogStream::MsgLogStream().

void MsgLogger::setLevel ( MsgLogLevel  level  ) 

set the logger level, messages with the level below this won't be logged

Definition at line 57 of file MsgLogger.cpp.

void MsgLogger::propagate ( bool  flag  ) 

define wheter or not we need messages propagated to ancestors

Definition at line 64 of file MsgLogger.cpp.

Referenced by readConfig().

void MsgLogger::addHandler ( MsgHandler *  handler  ) 

add a handler for the messages, takes ownership of the object

Definition at line 71 of file MsgLogger.cpp.

bool MsgLogger::logging ( MsgLogLevel  sev  )  const

check if the specified level will log any message

Definition at line 79 of file MsgLogger.cpp.

bool MsgLogger::log ( const MsgLogRecord &  record  )  const

get the stream for the specified log level

Definition at line 86 of file MsgLogger.cpp.


Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7