public class BasicConfigurator
extends java.lang.Object
For file based configuration see PropertyConfigurator
. For XML based configuration see DOMConfigurator
.
限定符 | 构造器和说明 |
---|---|
protected |
BasicConfigurator() |
限定符和类型 | 方法和说明 |
---|---|
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.