org.apache.log4j
public class BasicConfigurator extends Object
For file based configuration see {@link PropertyConfigurator}. For XML based configuration see {@link org.apache.log4j.xml.DOMConfigurator DOMConfigurator}.
Since: 0.8.1
Constructor Summary | |
---|---|
protected | BasicConfigurator() |
Method Summary | |
---|---|
static void | configure()
Add a {@link ConsoleAppender} that uses {@link PatternLayout}
using the {@link 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. |
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 {@link Hierarchy#resetConfiguration()} for more details.