[logback-dev] svn commit: r1560 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Aug 9 18:53:37 CEST 2007


Author: ceki
Date: Thu Aug  9 18:53:36 2007
New Revision: 1560

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java

Log:
contants are better than strings

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java	Thu Aug  9 18:53:36 2007
@@ -22,10 +22,11 @@
   static final String TSTR = "Caught Exception while in Loader.getResource. This may be innocuous.";
 
   private static boolean ignoreTCL = false;
-
+  public static final String IGNORE_TCL_PROPERTY_NAME = "logback.ignoreTCL";
+  
   static {
 
-    String ignoreTCLProp = OptionHelper.getSystemProperty("logback.ignoreTCL",
+    String ignoreTCLProp = OptionHelper.getSystemProperty(IGNORE_TCL_PROPERTY_NAME,
         null);
 
     if (ignoreTCLProp != null) {



More information about the logback-dev mailing list