public class BasicConfigurator extends Object
For file based configuration see PropertyConfigurator. For XML based configuration see
DOMConfigurator.
This class isn't used by pax-logging, but is part of public API. Methods are simply no-op.
| Modifier | Constructor and Description |
|---|---|
protected |
BasicConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configure()
Add a
ConsoleAppender that uses PatternLayout using the
PatternLayout.TTCC_CONVERSION_PATTERN and prints to
System.out to the root category. |
static void |
configure(org.apache.log4j.Appender appender)
Add
appender to the root category. |
static void |
resetConfiguration()
Reset the default hierarchy to its defaut.
|
public static void configure()
ConsoleAppender that uses PatternLayout using the
PatternLayout.TTCC_CONVERSION_PATTERN and prints to
System.out to the root category.public static void configure(org.apache.log4j.Appender appender)
appender to the root category.appender - The appender to add to the root category.public static void resetConfiguration()
Category.getDefaultHierarchy().resetConfiguration().
See Hierarchy.resetConfiguration() for more details.
Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.