[logback-dev] svn commit: r1133 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Tue Dec 19 21:42:35 CET 2006
Author: ceki
Date: Tue Dec 19 21:42:35 2006
New Revision: 1133
Modified:
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java
Log:
ongoing refactoring
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java Tue Dec 19 21:42:35 2006
@@ -24,12 +24,10 @@
configurator.doConfigure(url);
}
- public static void autoConfig(LoggerContext loggerContext) {
-
- ClassLoader tccl = Loader.getTCL();
- URL url = Loader.getResource(AUTOCONFIG_FILE, tccl);
+ public static void autoConfig(LoggerContext loggerContext, ClassLoader classLoader) {
+ URL url = Loader.getResource(AUTOCONFIG_FILE, classLoader);
if (url == null) {
- url = Loader.getResource(TEST_AUTOCONFIG_FILE, tccl);
+ url = Loader.getResource(TEST_AUTOCONFIG_FILE, classLoader);
}
if (url != null) {
@@ -42,4 +40,10 @@
BasicConfigurator.configure(loggerContext);
}
}
+
+ public static void autoConfig(LoggerContext loggerContext) {
+ ClassLoader tccl = Loader.getTCL();
+ autoConfig(loggerContext, tccl);
+
+ }
}
More information about the logback-dev
mailing list