cee::AppLogging Class Reference

Static helper class for doing application level logging. More...

Static Public Member Functions

static void initialize (const Str &appLoggerName)
 Initializes app logging specifying an app logger name. More...
 
static void logError (const Str &message, const CodeLocation &location)
 Adds an error (level 1) log entry to the logger. More...
 
static void logWarning (const Str &message, const CodeLocation &location)
 Adds a warning (level 2) log entry to the logger. More...
 
static void logInfo (const Str &message, const CodeLocation &location)
 Adds a info log (level 3) entry to the logger. More...
 
static void logDebug (const Str &message, const CodeLocation &location)
 Adds a debug (level 4) log entry to the logger. More...
 
static void setStandardLogLevels ()
 Sets standard log levels for application. More...
 
static void setNormalDebugLogLevels ()
 Sets normal debug log levels for an application. More...
 
static void setFullInfoLogLevels ()
 Sets full debug log levels for an application. More...
 
static void setFullDebugLogLevels ()
 Sets full debug log levels for an application. More...
 

Detailed Description

Static helper class for doing application level logging.

Typically used in conjunction with the CEE_LOG_APP_ERROR, CEE_LOG_APP_WARNING, CEE_LOG_APP_INFO and CEE_LOG_APP_DEBUG macros. The AppLogging class should be initialized using AppLogging::initialize() before it or any of the macros are be used.

Member Function Documentation

void cee::AppLogging::initialize ( const Str appLoggerName)
static

Initializes app logging specifying an app logger name.

void cee::AppLogging::logDebug ( const Str message,
const CodeLocation location 
)
static

Adds a debug (level 4) log entry to the logger.

void cee::AppLogging::logError ( const Str message,
const CodeLocation location 
)
static

Adds an error (level 1) log entry to the logger.

void cee::AppLogging::logInfo ( const Str message,
const CodeLocation location 
)
static

Adds a info log (level 3) entry to the logger.

void cee::AppLogging::logWarning ( const Str message,
const CodeLocation location 
)
static

Adds a warning (level 2) log entry to the logger.

void cee::AppLogging::setFullDebugLogLevels ( )
static

Sets full debug log levels for an application.

Sets all loggers, including all components and underlying modules, to log all message.

void cee::AppLogging::setFullInfoLogLevels ( )
static

Sets full debug log levels for an application.

Sets all loggers, including all components and underlying modules, to log all error, warning and info messages.

void cee::AppLogging::setNormalDebugLogLevels ( )
static

Sets normal debug log levels for an application.

Sets all loggers to report errors and warnings, except for the application logger which will log all messages, including both info and debug messages.

void cee::AppLogging::setStandardLogLevels ( )
static

Sets standard log levels for application.

Sets all loggers to report errors and warnings, except for the application logger which also logs info messages. This is the default setting.