[logback-dev] svn commit: r732 - logback/trunk/logback-access/src/main/java/ch/qos/logback/access/pattern

noreply.ceki at qos.ch noreply.ceki at qos.ch
Fri Oct 20 17:29:14 CEST 2006


Author: ceki
Date: Fri Oct 20 17:29:14 2006
New Revision: 732

Modified:
   logback/trunk/logback-access/src/main/java/ch/qos/logback/access/pattern/DateConverter.java

Log:
We no longer need to mess with DATE, ABSOLUTE as SimpleDateFormat does a good job.
Just remove these string constants from the docs (and not reintroduce them in the java code.)
Sorry, this was my mistake.

Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/pattern/DateConverter.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/pattern/DateConverter.java	(original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/pattern/DateConverter.java	Fri Oct 20 17:29:14 2006
@@ -32,13 +32,9 @@
       datePattern = CoreGlobal.CLF_DATE_PATTERN;
     }
     
-    if (datePattern.equals(CoreGlobal.ISO8601_FORMAT)) {
+    if (datePattern.equals(CoreGlobal.ISO8601_STR)) {
       datePattern = CoreGlobal.ISO8601_PATTERN;
-    } else if (datePattern.equals(CoreGlobal.DATE_AND_TIME_FORMAT)) {
-      datePattern = CoreGlobal.DATE_AND_TIME_PATTERN;
-    } else if (datePattern.equals(CoreGlobal.ABSOLUTE_FORMAT)) {
-      datePattern = CoreGlobal.ABSOLUTE_PATTERN;
-    }
+    } 
     
     try {
       simpleFormat = new SimpleDateFormat(datePattern);



More information about the logback-dev mailing list