Apache Log4cxx Version 1.0.0
|
Use this class to quickly configure the package. More...
#include <basicconfigurator.h>
Static Public Member Functions | |
static void | configure (const LayoutPtr &layout=LayoutPtr()) |
Add a ConsoleAppender to the root logger that formats output using layout . | |
static void | configure (const AppenderPtr &appender) |
Add appender to the root logger. | |
static void | resetConfiguration () |
Reset the default hierarchy to its defaut. | |
Protected Member Functions | |
BasicConfigurator () | |
Use this class to quickly configure the package.
For file based configuration see PropertyConfigurator. For XML based configuration see DOMConfigurator.
|
inlineprotected |
|
static |
Add appender
to the root logger.
appender | The appender to add to the root logger. |
Add a ConsoleAppender to the root logger that formats output using layout
.
If layout
is not provided, use a PatternLayout with %r [%t] %p %c %x - %m%n
as the conversion pattern.
|
static |
Reset the default hierarchy to its defaut.
It is equivalent to calling Logger::getDefaultHierarchy()->resetConfiguration()
. See Hierarchy::resetConfiguration() for more details.