ch.qos.logback.classic.util
Class ContextInitializer
java.lang.Object
ch.qos.logback.classic.util.ContextInitializer
public class ContextInitializer
- extends Object
This class contains logback's logic for automatic configuration
- Author:
- Ceki Gulcu
Method Summary |
void |
autoConfig()
Configures logback with the first configuration found in the following search path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTOCONFIG_FILE
public static final String AUTOCONFIG_FILE
- See Also:
- Constant Field Values
TEST_AUTOCONFIG_FILE
public static final String TEST_AUTOCONFIG_FILE
- See Also:
- Constant Field Values
CONFIG_FILE_PROPERTY
public static final String CONFIG_FILE_PROPERTY
- See Also:
- Constant Field Values
STATUS_LISTENER_CLASS
public static final String STATUS_LISTENER_CLASS
- See Also:
- Constant Field Values
SYSOUT
public static final String SYSOUT
- See Also:
- Constant Field Values
ContextInitializer
public ContextInitializer(LoggerContext loggerContext)
autoConfig
public void autoConfig()
throws JoranException
- Configures logback with the first configuration found in the following search path.
If no configuration found, nothing is done and logging is disabled.
- ${logback.configurationFile} (a system property)
- jar:file://assets/logback.xml
- Throws:
JoranException
Copyright © 2005-2013 QOS.ch. All Rights Reserved.