Public Member Functions | |
Logger (void) | |
Constructor for Logger object. | |
~Logger (void) | |
Destructor for Logger object. | |
void | setLoggingLevel (LoggingLevel level) |
Set the level of logging information that will get out to the log file. | |
LoggingLevel | getLoggingLevel (void) const |
return the current logging level setting | |
void | logEvent (const String &message, LoggingLevel level=Standard) |
Add an event to the log. | |
void | setLogFilename (const String &filename, bool append=false) |
Set the name of the log file where all subsequent log entries should be written. | |
Static Public Member Functions | |
static Logger & | getSingleton (void) |
Return the singleton Logger object. | |
Protected Attributes | |
LoggingLevel | d_level |
Holds current logging level. | |
std::ofstream | d_ostream |
Stream used to implement the logger. | |
std::vector< std::pair< String, LoggingLevel > > | d_cache |
Used to cache log entries before log file is created. | |
std::ostringstream | d_workstream |
Used to build log entry strings. | |
bool | d_caching |
true while log entries are beign cached (prior to logfile creation) |
|
return the current logging level setting
|
|
Return the singleton Logger object.
|
|
Add an event to the log.
|
|
Set the name of the log file where all subsequent log entries should be written.
|
|
Set the level of logging information that will get out to the log file.
|