#include <LoggerManager.h>
Public Member Functions | |
| TLogger & | getRoot () |
| TLogger & | getLogger (const TString &strName) |
| void | setRootLogger (ILogger *pLogger) |
| void | releaseAllLoggers () |
| Retval | initLogger (TString strModuleName) |
Static Public Member Functions | |
| static TLoggerManager & | getInstance () |
This singleton object contains the root logger object.
| TLoggerManager & zeus::TLoggerManager::getInstance | ( | ) | [inline, static] |
Returns the LoggerManager
Gets a specific logger instance.
| TLogger & zeus::TLoggerManager::getRoot | ( | ) | [inline] |
Returns the root logger object.
| Retval TLoggerManager::initLogger | ( | TString | strModuleName ) |
initializes the root logger. The logger will be allocated from a system module, which must be previously loaded using the library manager.
| strModuleName | : Name of the module |
| RET_NOERROR | : Root logger initialized |
| RET_REQUEST_FAILED | : Could not initialize the logger |
| void TLoggerManager::releaseAllLoggers | ( | ) |
This method must be called at the end of the program, before all libraries are unloaded.
| void TLoggerManager::setRootLogger | ( | ILogger * | pLogger ) |
Sets a new logger as a root logger