For file based configuration see {@link
PropertyConfigurator}. For XML based configuration see {@link
org.apache.log4j.xml.DOMConfigurator DOMConfigurator}.
since
0.8.1
author
Ceki Gülcü
Fields Summary
Constructors Summary
protected BasicConfigurator()
Methods Summary
public 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.
Logger root = Logger.getRootLogger();
root.addAppender(new ConsoleAppender(
new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)));
Reset the default hierarchy to its defaut. It is equivalent to
calling
Category.getDefaultHierarchy().resetConfiguration().
See {@link Hierarchy#resetConfiguration()} for more details.