Static Public Member Functions | |
static void | setRepositorySelector (spi::RepositorySelectorPtr selector, void *guard) |
static LoggerPtr | getRootLogger () |
static LoggerPtr | getLogger (const String &name) |
static LoggerPtr | getLogger (const String &name, spi::LoggerFactoryPtr factory) |
static void | shutdown () |
static void | resetConfiguration () |
LogManager
class to retreive Logger instances or to operate on the current LoggerRepository. When the LogManager
class is loaded into memory the default initialization procedure is inititated.
void setRepositorySelector | ( | spi::RepositorySelectorPtr | selector, | |
void * | guard | |||
) | [static] |
Sets LoggerFactory
but only if the correct guard is passed as parameter.
Initally the guard is null. If the guard is null
, then invoking this method sets the logger factory and the guard. Following invocations will throw a IllegalArgumentException, unless the previously set guard
is passed as the second parameter.
This allows a high-level component to set the RepositorySelector used by the LogManager
.
LoggerPtr getRootLogger | ( | ) | [static] |
Retrieve the appropriate root logger.
LoggerPtr getLogger | ( | const String & | name, | |
spi::LoggerFactoryPtr | factory | |||
) | [static] |
Retrieve the appropriate Logger instance.
void shutdown | ( | ) | [static] |
Safely close and remove all appenders in all loggers including the root logger.
void resetConfiguration | ( | ) | [static] |
Reset all values contained in this current LoggerRepository to their default.