public class BasicConfigurator extends Object
For file based configuration, see PropertyConfigurator
. For XML based configuration, see
DOMConfigurator
.
Modifier | Constructor and Description |
---|---|
protected |
BasicConfigurator()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
configure()
Adds 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)
Adds
appender to the root category. |
static void |
resetConfiguration()
Resets the default hierarchy to its default.
|
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 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.