log4cplus
2.1.0
|
Use this class to quickly configure the package. More...
#include <configurator.h>
Public Member Functions | |
BasicConfigurator (Hierarchy &h=Logger::getDefaultHierarchy(), bool logToStdErr=false) | |
virtual | ~BasicConfigurator () |
Public Member Functions inherited from log4cplus::PropertyConfigurator | |
PropertyConfigurator (const log4cplus::tstring &propertyFile, Hierarchy &h=Logger::getDefaultHierarchy(), unsigned flags=0) | |
PropertyConfigurator (const log4cplus::helpers::Properties &props, Hierarchy &h=Logger::getDefaultHierarchy(), unsigned flags=0) | |
PropertyConfigurator (log4cplus::tistream &propertyStream, Hierarchy &h=Logger::getDefaultHierarchy(), unsigned flags=0) | |
virtual | ~PropertyConfigurator () |
virtual void | configure () |
Read configuration from a file. More... | |
log4cplus::helpers::Properties const & | getProperties () const |
log4cplus::tstring const & | getPropertyFilename () const |
Static Public Member Functions | |
static void | doConfigure (Hierarchy &h=Logger::getDefaultHierarchy(), bool logToStdErr=false) |
This method eliminates the need to create a temporary BasicConfigurator object to configure log4cplus. More... | |
Static Public Member Functions inherited from log4cplus::PropertyConfigurator | |
static void | doConfigure (const log4cplus::tstring &configFilename, Hierarchy &h=Logger::getDefaultHierarchy(), unsigned flags=0) |
This method eliminates the need to create a temporary PropertyConfigurator to configure log4cplus. More... | |
Static Public Attributes | |
static log4cplus::tstring const | DISABLE_OVERRIDE_KEY |
Property name for disable override. More... | |
Use this class to quickly configure the package.
For file based configuration see PropertyConfigurator. BasicConfigurator automatically attaches ConsoleAppender to rootLogger
, with output going to standard output, using DEBUG LogLevel value. The additional parameter logToStdErr may redirect the output to standard error.
Definition at line 326 of file configurator.h.
log4cplus::BasicConfigurator::BasicConfigurator | ( | Hierarchy & | h = Logger::getDefaultHierarchy() , |
bool | logToStdErr = false |
||
) |
|
virtual |
|
static |
This method eliminates the need to create a temporary BasicConfigurator
object to configure log4cplus.
It is equivalent to the following:
BasicConfigurator config; config.configure();
|
static |
Property name for disable override.
Definition at line 346 of file configurator.h.