#include <Logger.hpp>
Public Member Functions | |
LoggerType & | loggerFromChannel (const LogChannel &logChannel) |
get a logger from a LogChannel enumeration, if logChannel does not exist a new logger will be set up at the default level More... | |
LogSink | standardErrLogger () const |
get logger for standard error More... | |
LogSink | standardOutLogger () const |
get logger for standard out More... | |
~LoggerSingleton () | |
destructor, cleans up, writes xml file footers, etc More... | |
Protected Member Functions | |
void | addSink (boost::shared_ptr< LogSinkBackend > sink) |
adds a sink to the logging core, equivalent to logSink.enable() More... | |
bool | findSink (boost::shared_ptr< LogSinkBackend > sink) |
is the sink found in the logging core More... | |
void | removeSink (boost::shared_ptr< LogSinkBackend > sink) |
removes a sink to the logging core, equivalent to logSink.disable() More... | |
Singleton logger class.
Singleton Logger object maintains logging state throughout program execution.
openstudio::LoggerSingleton::~LoggerSingleton | ( | ) |
destructor, cleans up, writes xml file footers, etc
|
protected |
adds a sink to the logging core, equivalent to logSink.enable()
|
protected |
is the sink found in the logging core
LoggerType& openstudio::LoggerSingleton::loggerFromChannel | ( | const LogChannel & | logChannel | ) |
get a logger from a LogChannel enumeration, if logChannel does not exist a new logger will be set up at the default level
|
protected |
removes a sink to the logging core, equivalent to logSink.disable()
LogSink openstudio::LoggerSingleton::standardErrLogger | ( | ) | const |
get logger for standard error
LogSink openstudio::LoggerSingleton::standardOutLogger | ( | ) | const |
get logger for standard out