The Base Custom Log Handler class. More...
#include <ored/utilities/log.hpp>
Public Member Functions | |
virtual | ~Logger () |
Destructor. More... | |
virtual void | log (unsigned level, const std::string &s)=0 |
The Log call back function. More... | |
const std::string & | name () |
Returns the Logger name. More... | |
Protected Member Functions | |
Logger (const std::string &name) | |
Constructor. More... | |
Private Attributes | |
std::string | name_ |
The Base Custom Log Handler class.
This base log handler class can be used to define your own custom handler and then registered with the Log class. Once registered it will receive all log messages as soon as they occur via it's log() method
|
protected |
|
pure virtual |
The Log call back function.
This function will be called every time a log message is produced.
level | the log level |
s | the log message |
Implemented in StderrLogger, FileLogger, and BufferLogger.
const std::string & name | ( | ) |