Scarab  v3.9.3
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
logger::Private Struct Reference

Public Types

typedef std::set< logger *> LoggerSet
 

Public Member Functions

void logCout (ELevel level, const string &message, const Location &loc)
 
void logCerr (ELevel level, const string &message, const Location &loc)
 

Static Public Member Functions

static unsigned & count ()
 
static std::mutex & mutex ()
 
static std::shared_ptr< LoggerSet > & AllLoggers ()
 
static char * dateTimeFormat ()
 
static char * getTimeAbsoluteStr (bool aGetNewTime=false)
 
static bool & colored ()
 
static std::ostream *& out ()
 
static std::ostream *& err ()
 
static ELevelGlobalThreshold ()
 
static const char * level2Str (ELevel level)
 
static string level2Color (ELevel level)
 
static ELevel filterMinimumLevel (ELevel level)
 

Public Attributes

const char * fLogger
 
ELevel fThreshold
 
bool fThresholdIsGlobal
 

Detailed Description

Definition at line 40 of file logger.cc.

Member Typedef Documentation

◆ LoggerSet

typedef std::set< logger* > LoggerSet

Definition at line 54 of file logger.cc.

Member Function Documentation

◆ AllLoggers()

static std::shared_ptr<LoggerSet>& AllLoggers ( )
inlinestatic

Definition at line 55 of file logger.cc.

◆ colored()

static bool& colored ( )
inlinestatic

Definition at line 88 of file logger.cc.

◆ count()

static unsigned& count ( )
inlinestatic

Definition at line 42 of file logger.cc.

◆ dateTimeFormat()

static char* dateTimeFormat ( )
inlinestatic

Definition at line 62 of file logger.cc.

◆ err()

static std::ostream*& err ( )
inlinestatic

Definition at line 104 of file logger.cc.

◆ filterMinimumLevel()

static ELevel filterMinimumLevel ( ELevel  level)
inlinestatic

Definition at line 150 of file logger.cc.

◆ getTimeAbsoluteStr()

static char* getTimeAbsoluteStr ( bool  aGetNewTime = false)
inlinestatic

Definition at line 69 of file logger.cc.

◆ GlobalThreshold()

static ELevel& GlobalThreshold ( )
inlinestatic

Definition at line 113 of file logger.cc.

◆ level2Color()

static string level2Color ( ELevel  level)
inlinestatic

Definition at line 135 of file logger.cc.

◆ level2Str()

static const char* level2Str ( ELevel  level)
inlinestatic

Definition at line 120 of file logger.cc.

◆ logCerr()

void logCerr ( ELevel  level,
const string &  message,
const Location loc 
)
inline

Definition at line 191 of file logger.cc.

◆ logCout()

void logCout ( ELevel  level,
const string &  message,
const Location loc 
)
inline

Definition at line 162 of file logger.cc.

◆ mutex()

static std::mutex& mutex ( )
inlinestatic

Definition at line 48 of file logger.cc.

◆ out()

static std::ostream*& out ( )
inlinestatic

Definition at line 98 of file logger.cc.

Member Data Documentation

◆ fLogger

const char* fLogger

Definition at line 86 of file logger.cc.

◆ fThreshold

ELevel fThreshold

Definition at line 110 of file logger.cc.

◆ fThresholdIsGlobal

bool fThresholdIsGlobal

Definition at line 111 of file logger.cc.


The documentation for this struct was generated from the following file: