DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <Logger.hh>
Public Member Functions | |
const string & | getLabel (LogLevel level) const |
~LoggerFactory () | |
Logger | getLogger (const string &name) |
Logger | getRootLogger () |
Static Public Member Functions | |
static void | destroy () |
static LoggerFactory * | factory () |
Protected Member Functions | |
LoggerFactory () | |
Private Attributes | |
std::shared_ptr< LoggerData > | _defaultLogger |
unordered_map< string, std::shared_ptr< LoggerData > > | _loggers |
vector< string > | _levelLabels |
Static Private Attributes | |
static LoggerFactory * | _instance |
Friends | |
ostream & | operator<< (ostream &os, const LoggerFactory &loggers) |
This class manages the set of available Loggers. At any time, the factory manages the default Logger. It can also manage another set of Loggers. Each Logger has then a name. The factory is unique (singleton pattern).
|
protected |
protected default constructor
Diades::Utils::LoggerFactory::~LoggerFactory | ( | ) |
Destructor
|
static |
|
static |
|
inline |
|
inline |
|
inline |
The default logger
Definition at line 309 of file Logger.hh.
References Diades::Utils::operator<<().
|
friend |
Output stream operator
os | output stream |
loggers | the LoggerFactory |
|
private |
|
staticprivate |
|
private |
|
private |