public class BasicConfigurator extends Object
For file based configuration see PropertyConfigurator. For XML based configuration see
DOMConfigurator.
| 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(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(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 © 1999–2024 QOS.CH Sarl (Switzerland). All rights reserved.