Apache log4cxx  Version 0.12.0
log4cxx::BasicConfigurator Class Reference

Use this class to quickly configure the package. More...

#include <basicconfigurator.h>

Static Public Member Functions

static void configure ()
 Add a ConsoleAppender that uses PatternLayout using the PatternLayout::TTCC_CONVERSION_PATTERN and prints to stdout to the root logger. More...
 
static void configure (const AppenderPtr &appender)
 Add appender to the root logger. More...
 
static void resetConfiguration ()
 Reset the default hierarchy to its defaut. More...
 

Protected Member Functions

 BasicConfigurator ()
 

Detailed Description

Use this class to quickly configure the package.

For file based configuration see PropertyConfigurator. For XML based configuration see DOMConfigurator.

Constructor & Destructor Documentation

◆ BasicConfigurator()

log4cxx::BasicConfigurator::BasicConfigurator ( )
inlineprotected

Member Function Documentation

◆ configure() [1/2]

static void log4cxx::BasicConfigurator::configure ( )
static

Add a ConsoleAppender that uses PatternLayout using the PatternLayout::TTCC_CONVERSION_PATTERN and prints to stdout to the root logger.

◆ configure() [2/2]

static void log4cxx::BasicConfigurator::configure ( const AppenderPtr appender)
static

Add appender to the root logger.

Parameters
appenderThe appender to add to the root logger.

◆ resetConfiguration()

static void log4cxx::BasicConfigurator::resetConfiguration ( )
static

Reset the default hierarchy to its defaut.

It is equivalent to calling Logger::getDefaultHierarchy()->resetConfiguration(). See Hierarchy::resetConfiguration() for more details.


The documentation for this class was generated from the following file: