|
Apache Log4cxx
Version 1.6.0
|
Use BasicConfigurator (static) methods to configure Log4cxx when not using a configuration file. More...
#include <basicconfigurator.h>
Static Public Member Functions | |
| static void | configure (const LayoutPtr &layout=LayoutPtr()) |
Add a ConsoleAppender that formats output using layout to the root logger. | |
| static void | configure (const AppenderPtr &appender) |
Add appender to the root logger. | |
| static void | configureAsync (const LayoutPtr &layout=LayoutPtr()) |
Add a ConsoleAppender that formats output using layout to an AsyncAppender attacted the root logger. | |
| static void | configureAsync (const AppenderPtr &appender) |
Add appender to an AsyncAppender attacted to the root logger. | |
| static void | resetConfiguration () |
| Reset the default hierarchy to its defaut. | |
Protected Member Functions | |
| BasicConfigurator () | |
Use BasicConfigurator (static) methods to configure Log4cxx when not using a configuration file.
For key=value format configuration see PropertyConfigurator. For XML format configuration see xml::DOMConfigurator.
|
inlineprotected |
|
static |
Add appender to the root logger.
| appender | The appender to add to the root logger. |
Add a ConsoleAppender that formats output using layout to the root logger.
If layout is not provided, use a PatternLayout with the conversion pattern:
%r [%t] %p %c %x - %Y%m%y%n if color is enabled (the default)%r [%t] %p %c %x - %m%n if color is disabled
|
static |
Add appender to an AsyncAppender attacted to the root logger.
| appender | The appender that asynchronously formats output. |
Add a ConsoleAppender that formats output using layout to an AsyncAppender attacted the root logger.
If layout is not provided, use a PatternLayout with the conversion pattern:
%r [%t] %p %c %x - %Y%m%y%n if color is enabled (the default)%r [%t] %p %c %x - %m%n if color is disabled
|
static |
Reset the default hierarchy to its defaut.
It is equivalent to calling Logger::getDefaultHierarchy()->resetConfiguration(). See Hierarchy::resetConfiguration() for more details.