WARPXM v1.10.0
|
Establishes basic interface of loggers. More...
#include <wxlogger.h>
Establishes basic interface of loggers.
Public Types | |
typedef std::map< std::string, T *, std::less< std::string > > | LoggerMap_t |
typedef std::pair< std::string, T * > | LoggerPair_t |
Static Public Member Functions | |
static T * | get (const std::string &nm) |
Returns a logger with a given name. | |
static T * | getSafe (const std::string &nm) |
Returns a logger with a given name. | |
static void | cleanUp () |
Delete all loggers registered in the system. | |
typedef std::map<std::string, T*, std::less<std::string> > WxLoggerBase< T >::LoggerMap_t |
typedef std::pair<std::string, T*> WxLoggerBase< T >::LoggerPair_t |
|
inlinestatic |
Delete all loggers registered in the system.
|
inlinestatic |
Returns a logger with a given name.
If such a logger does not exist a new logger with that name is created and returned. Note that calling this method with the same name will always return the same logger object. Thus once loggers are created they become global objects.
|
inlinestatic |
Returns a logger with a given name.
If such a logger does not exist an exception is thrown.