BasicConfigurator Class Reference

List of all members.

Static Public Member Functions

void configure ()
void configure (const AppenderPtr &appender)
void resetConfiguration ()

Detailed Description

Use this class to quickly configure the package.

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


Member Function Documentation

void configure const AppenderPtr appender  )  [static]
 

Add appender to the root logger.

Parameters:
appender The appender to add to the root logger.

void configure  )  [static]
 

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

void 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 files:
  • basicconfigurator.h
  • basicconfigurator.cpp

Copyright © 1999-2004, Apache Software Foundation