MsgLogger::MsgLogLevel Class Reference
[C++ Message Logging Facility]

#include <MsgLogLevel.h>

List of all members.

Public Types

 debug
 trace
 info
 warning
 error
 fatal
 nolog
 LAST_LEVEL = nolog
enum  Level {
  debug, trace, info, warning,
  error, fatal, nolog, LAST_LEVEL = nolog
}

Public Member Functions

 MsgLogLevel (Level code)
 MsgLogLevel (int code)
 MsgLogLevel (const std::string &name)
 ~MsgLogLevel ()
MsgLogLeveloperator= (const Level code)
bool operator== (MsgLogLevel other) const
bool operator!= (MsgLogLevel other) const
bool operator< (MsgLogLevel other) const
bool operator<= (MsgLogLevel other) const
bool operator> (MsgLogLevel other) const
bool operator>= (MsgLogLevel other) const
const char * levelName () const
const char * level3 () const
char levelLetter () const
int code () const

Static Public Member Functions

static MsgLogLevel defaultLevel ()


Detailed Description

This class defines message logging levels, their names and ordering.

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

See also:
MsgLogLevelMsgLogLevel
Version:
Id
MsgLogLevel.h 2700 2011-12-09 21:52:07Z salnikov@SLAC.STANFORD.EDU
Author:
Andy Salnikov

Definition at line 69 of file MsgLogLevel.h.


Member Enumeration Documentation

enum MsgLogger::MsgLogLevel::Level

Message Level levels. The code in the package depends on the range which should in [0...LAST_LEVEL]

Enumerator:
debug 
trace 
info 
warning 
error 
fatal 
nolog 
LAST_LEVEL 

Definition at line 77 of file MsgLogLevel.h.


Constructor & Destructor Documentation

MsgLogger::MsgLogLevel::MsgLogLevel ( Level  code  )  [inline]

Definition at line 88 of file MsgLogLevel.h.

Referenced by defaultLevel().

MsgLogger::MsgLogLevel::MsgLogLevel ( int  code  )  [explicit]

Definition at line 43 of file MsgLogLevel.cpp.

References debug, and error.

MsgLogger::MsgLogLevel::MsgLogLevel ( const std::string &  name  )  [explicit]

Definition at line 53 of file MsgLogLevel.cpp.

References debug, error, fatal, info, nolog, trace, and warning.

MsgLogger::MsgLogLevel::~MsgLogLevel (  )  [inline]

Definition at line 96 of file MsgLogLevel.h.


Member Function Documentation

int MsgLogger::MsgLogLevel::code (  )  const [inline]

Definition at line 120 of file MsgLogLevel.h.

Referenced by MsgLogger::MsgFormatter::addFormat(), MsgLogger::MsgFormatter::addGlobalFormat(), and MsgLogger::MsgFormatter::getFormat().

static MsgLogLevel MsgLogger::MsgLogLevel::defaultLevel (  )  [inline, static]

Definition at line 138 of file MsgLogLevel.h.

References info, and MsgLogLevel().

const char * MsgLogger::MsgLogLevel::level3 (  )  const

Definition at line 99 of file MsgLogLevel.cpp.

References debug, error, fatal, info, nolog, trace, and warning.

Referenced by MsgLogger::MsgFormatter::format().

char MsgLogger::MsgLogLevel::levelLetter (  )  const

Definition at line 122 of file MsgLogLevel.cpp.

References debug, error, fatal, info, nolog, trace, and warning.

Referenced by MsgLogger::MsgFormatter::format().

const char * MsgLogger::MsgLogLevel::levelName (  )  const

Definition at line 76 of file MsgLogLevel.cpp.

References debug, error, fatal, info, nolog, trace, and warning.

Referenced by MsgLogger::operator<<().

bool MsgLogger::MsgLogLevel::operator!= ( MsgLogLevel  other  )  const [inline]

Definition at line 104 of file MsgLogLevel.h.

References _level.

bool MsgLogger::MsgLogLevel::operator< ( MsgLogLevel  other  )  const [inline]

Definition at line 105 of file MsgLogLevel.h.

References _level.

bool MsgLogger::MsgLogLevel::operator<= ( MsgLogLevel  other  )  const [inline]

Definition at line 106 of file MsgLogLevel.h.

References _level.

MsgLogLevel& MsgLogger::MsgLogLevel::operator= ( const Level  code  )  [inline]

Definition at line 100 of file MsgLogLevel.h.

bool MsgLogger::MsgLogLevel::operator== ( MsgLogLevel  other  )  const [inline]

Definition at line 103 of file MsgLogLevel.h.

References _level.

bool MsgLogger::MsgLogLevel::operator> ( MsgLogLevel  other  )  const [inline]

Definition at line 107 of file MsgLogLevel.h.

References _level.

bool MsgLogger::MsgLogLevel::operator>= ( MsgLogLevel  other  )  const [inline]

Definition at line 108 of file MsgLogLevel.h.

References _level.


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7