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

noreply.ceki at qos.ch noreply.ceki at qos.ch
Tue Nov 28 22:51:48 CET 2006


Author: ceki
Date: Tue Nov 28 22:51:48 2006
New Revision: 1025

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicy.java

Log:

minor refactoring

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicy.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicy.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicy.java	Tue Nov 28 22:51:48 2006
@@ -28,6 +28,7 @@
  */
 public class SizeBasedTriggeringPolicy extends TriggeringPolicyBase {
   
+  public static final String SEE_SIZE_FORMAT = "http://logback.qos.ch/codes.html#sbtp_size_format";
   /**
    * The default maximum file size.
    */
@@ -82,7 +83,7 @@
         return Long.valueOf(s).longValue() * multiplier;
       }
       catch (NumberFormatException e) {
-        addError("[" + s + "] is not in proper int form. For more info, please visit http://logback.qos.ch/codes.html#sbtp_size_format");
+        addError("[" + s + "] is not in proper int format. Please refer to "+SEE_SIZE_FORMAT);
         addError("[" + value + "] not in expected format.", e);
       }
     }



More information about the logback-dev mailing list