#include <FeeClientLogger.hpp>
Public Member Functions | |
virtual | ~FeeClientLogger () |
void | createLogMessage (unsigned int type, char *origin, char *description) const |
void | setLogLevel (unsigned int lvl) |
void | relayLogEntry (MessageStruct *msgStruct) const |
bool | registerInterface (FeeClientLibInterface *interface) |
Static Public Member Functions | |
FeeClientLogger * | getLogger () |
Private Member Functions | |
FeeClientLogger () | |
bool | checkLogLevel (unsigned int event) const |
Private Attributes | |
unsigned int | mLogLevel |
FeeClientLibInterface * | mpInterface |
Static Private Attributes | |
FeeClientLogger * | pInstance = 0 |
|
Destructor for the Logger.
|
|
Constructor for the Logger.
|
|
Checks the event - type to the current LogLevel for local messages. If event - type is inside current LogLevel, the event will be announced, if not, no message will be send or logged (NO log file entry).
|
|
Prepares a logging message for sending it to a registered handler routine.
|
|
Method to create/get the single Logger - object (Singleton). This method takes care, that only one Logger - object is created at one time. If this object already exists, it returns the pointer to this object (see also "Design Patterns, GoF, - Singleton). This function must be static, because it is called without having an Logger - object.
|
|
This function registers the interface to the logger. If an interface has already been registered, the new one is discarded.
|
|
Relays a log entry, which is received from a FeeServer. The messages is checked against the log level delivered further in case of pass.
|
|
Set the current log level. It's a bit mask of
|
|
Current LogLevel (default level is "INFO|WARNING|ERROR|ALARM").
|
|
Pointer to the FeeClientLibInterface to call the handler routine. This interface has to be registered by the appropriated function. |
|
This is the one and only Logger - object. (see Singleton, GoF, Desing Patterns). |