DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <Loggable.hh>
Public Member Functions | |
Loggable () | |
Loggable (const string &loggerName) | |
Loggable (Logger &logger) | |
void | changeLogger (const string &newLoggerName) |
void | changeLogger (Logger &newLogger) |
Diades::Utils::Log | log (Log::Level level, const char *msg) |
Private Attributes | |
Logger | _logger |
This class offers a logging service for the class that is deriving from it.
Definition at line 27 of file Loggable.hh.
|
inline |
Default constructor: any instance deriving from this instance will be logged with the default logger
Definition at line 37 of file Loggable.hh.
|
inline |
Parametrised constructor:
loggerName | name of the looger: any instance deriving from this instance will be logged with the default logger |
Definition at line 46 of file Loggable.hh.
|
inline |
Paramtrised constructor:
loggerName | name of the looger: any instance deriving from this instance will be logged with the default logger |
Definition at line 55 of file Loggable.hh.
|
inline |
Change the logger with the one of the name newLoggerName
newLoggerName | name of the new logger |
Definition at line 63 of file Loggable.hh.
|
inline |
|
inline |
Log a message with a given level to the default logger
logger | the Logger |
msg | the message |
Definition at line 89 of file Loggable.hh.
Referenced by Diades::Automata::Component::numberOfTransitions().
|
private |
Definition at line 30 of file Loggable.hh.