#include <Logger.hpp>
Public Member Functions | |
virtual | ~Logger () |
void | createLogMessage (unsigned int type, char *origin, char *description) const |
void | relayLogEntry (MessageStruct *msgStruct) const |
void | setLogLevel (unsigned int logLevel) |
void | setRemoteLogLevel (unsigned int remoteLogLevel) |
unsigned int | getLogLevel () |
unsigned int | getRemoteLogLevel () |
Static Public Member Functions | |
Logger * | createLogger (FedMessenger *pMessenger) |
const Logger * | getLogger () |
|
Destructor for Logger and writes a logfile entry about shuting down the InterCom - Layer (Exception: no check for the LogLevel will be done here). |
|
Method to create a 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. ??? maybe use smart - pointer here to take care of the logger !!!
|
|
Prepares a logging message for sending it to the FedClient via FedMessenger and writes it also to the logfile, if possible.
|
|
Function to get the Logger from "outside". If Logger - objects has not been created yet, an exception is thrown.
|
|
Getter for the current LogLevel (local), used for unit tests.
|
|
Getter for the current remote LogLevel, used for unit tests.
|
|
Relays a log entry, which is received from a FeeServer. The messages is checked against the remote log level (for the FeeServer messages), if this fails, they are at least written to the log file, else they are delivered further.
|
|
Setter for the LogLevel (localy created events). A check for a valid LogLevel value is also done (if not valid, a message is send). [NOTE: The log level Msg_Alarm is always set!) A valid LogLevel can be any combination of:
|
|
Setter for the LogLevel of remote events. A check for a valid remote LogLevel value is also done (if not valid, a message is send). [NOTE: The log level Msg_Alarm is always set!) A valid LogLevel can be any combination of:
|