OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
openstudio::Logger Class Reference

#include <Logger.hpp>

Public Member Functions

 Logger (const Logger &other)=delete
 
 Logger (Logger &&other)=delete
 
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...
 
Loggeroperator= (const Logger &)=delete
 
Loggeroperator= (Logger &&)=delete
 
LogSink standardErrLogger () const
 get logger for standard error More...
 
LogSink standardOutLogger () const
 get logger for standard out More...
 

Static Public Member Functions

static Loggerinstance ()
 

Protected Member Functions

void addSink (boost::shared_ptr< LogSinkBackend > sink)
 adds a sink to the logging core, equivalent to logSink.enable() More...
 
void addTimeStampToLogger ()
 
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...
 

Constructor & Destructor Documentation

openstudio::Logger::Logger ( const Logger other)
delete
openstudio::Logger::Logger ( Logger &&  other)
delete

Member Function Documentation

void openstudio::Logger::addSink ( boost::shared_ptr< LogSinkBackend >  sink)
protected

adds a sink to the logging core, equivalent to logSink.enable()

void openstudio::Logger::addTimeStampToLogger ( )
protected
bool openstudio::Logger::findSink ( boost::shared_ptr< LogSinkBackend >  sink)
protected

is the sink found in the logging core

static Logger& openstudio::Logger::instance ( )
static
LoggerType& openstudio::Logger::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

Logger& openstudio::Logger::operator= ( const Logger )
delete
Logger& openstudio::Logger::operator= ( Logger &&  )
delete
void openstudio::Logger::removeSink ( boost::shared_ptr< LogSinkBackend >  sink)
protected

removes a sink to the logging core, equivalent to logSink.disable()

LogSink openstudio::Logger::standardErrLogger ( ) const

get logger for standard error

LogSink openstudio::Logger::standardOutLogger ( ) const

get logger for standard out