org.apache.log4j
public class BasicConfigurator extends Object
For file based configuration see PropertyConfigurator. For XML based configuration see DOMConfigurator.
Since: 0.8.1
| Constructor Summary | |
|---|---|
| protected | BasicConfigurator() |
| Method Summary | |
|---|---|
| static void | configure()
Add a ConsoleAppender that uses PatternLayout
using the TTCC_CONVERSION_PATTERN and
prints to System.out to the root category. |
| static void | configure(Appender appender)
Add appender to the root category. |
| static void | resetConfiguration()
Reset the default hierarchy to its defaut. |
System.out to the root category.appender to the root category.Parameters: appender The appender to add to the root category.
Category.getDefaultHierarchy().resetConfiguration().
See resetConfiguration for more details.