Scarab  v3.2.4
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 40 of file logger.cc.

Member Typedef Documentation

◆ LoggerSet

typedef std::set< logger* > LoggerSet

Definition at line 44 of file logger.cc.

Member Function Documentation

◆ AllLoggers()

static LoggerSet* AllLoggers ( )
inlinestatic

Definition at line 45 of file logger.cc.

◆ getTimeAbsoluteStr()

static size_t getTimeAbsoluteStr ( )
inlinestatic

Definition at line 55 of file logger.cc.

◆ level2Color()

static string level2Color ( ELevel  level)
inlinestatic

Definition at line 88 of file logger.cc.

◆ level2Str()

static const char* level2Str ( ELevel  level)
inlinestatic

Definition at line 73 of file logger.cc.

◆ logCerr()

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

Definition at line 133 of file logger.cc.

◆ logCout()

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

Definition at line 104 of file logger.cc.

Member Data Documentation

◆ fColored

bool fColored = true
static

Definition at line 67 of file logger.cc.

◆ fErr

std::ostream * fErr = &cerr
static

Definition at line 71 of file logger.cc.

◆ fLogger

const char* fLogger

Definition at line 66 of file logger.cc.

◆ fOut

std::ostream * fOut = &cout
static

Definition at line 70 of file logger.cc.

◆ fThreshold

ELevel fThreshold

Definition at line 68 of file logger.cc.

◆ sDateTimeFormat

char sDateTimeFormat
static

Definition at line 51 of file logger.cc.

◆ sMutex

mutex sMutex
static

Definition at line 42 of file logger.cc.

◆ sProcessedTime

tm * sProcessedTime
static

Definition at line 53 of file logger.cc.

◆ sRawTime

time_t sRawTime
static

Definition at line 52 of file logger.cc.

◆ sTimeBuff

char sTimeBuff
static

Definition at line 54 of file logger.cc.


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