Scarab  v1.5.3
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static 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 LoggerSetAllLoggers ()
 
static size_t getTimeAbsoluteStr ()
 
static const char * level2Str (ELevel level)
 
static string level2Color (ELevel level)
 

Public Attributes

const char * fLogger
 
ELevel fThreshold
 

Static Public Attributes

static std::mutex sMutex
 
static char sDateTimeFormat [16]
 
static time_t sRawTime
 
static tm * sProcessedTime
 
static char sTimeBuff [512]
 
static bool fColored = true
 
static std::ostream * fOut = &cout
 
static std::ostream * fErr = &cerr
 

Detailed Description

Definition at line 46 of file logger.cc.

Member Typedef Documentation

typedef std::set< logger* > LoggerSet

Definition at line 50 of file logger.cc.

Member Function Documentation

static LoggerSet* AllLoggers ( )
inlinestatic

Definition at line 51 of file logger.cc.

static size_t getTimeAbsoluteStr ( )
inlinestatic

Definition at line 61 of file logger.cc.

static string level2Color ( ELevel  level)
inlinestatic

Definition at line 94 of file logger.cc.

static const char* level2Str ( ELevel  level)
inlinestatic

Definition at line 79 of file logger.cc.

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

Definition at line 139 of file logger.cc.

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

Definition at line 110 of file logger.cc.

Member Data Documentation

bool fColored = true
static

Definition at line 73 of file logger.cc.

std::ostream * fErr = &cerr
static

Definition at line 77 of file logger.cc.

const char* fLogger

Definition at line 72 of file logger.cc.

std::ostream * fOut = &cout
static

Definition at line 76 of file logger.cc.

ELevel fThreshold

Definition at line 74 of file logger.cc.

char sDateTimeFormat
static

Definition at line 57 of file logger.cc.

mutex sMutex
static

Definition at line 48 of file logger.cc.

tm * sProcessedTime
static

Definition at line 59 of file logger.cc.

time_t sRawTime
static

Definition at line 58 of file logger.cc.

char sTimeBuff
static

Definition at line 60 of file logger.cc.


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