You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2007/08/23 18:20:59 UTC

svn commit: r569061 - in /logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule: TimestampEqualsRule.java TimestampInequalityRule.java

Author: carnold
Date: Thu Aug 23 09:20:57 2007
New Revision: 569061

URL: http://svn.apache.org/viewvc?rev=569061&view=rev
Log:
Remove references to o.a.l.helpers.Constants

Modified:
    logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampEqualsRule.java
    logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampInequalityRule.java

Modified: logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampEqualsRule.java
URL: http://svn.apache.org/viewvc/logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampEqualsRule.java?rev=569061&r1=569060&r2=569061&view=diff
==============================================================================
--- logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampEqualsRule.java (original)
+++ logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampEqualsRule.java Thu Aug 23 09:20:57 2007
@@ -22,7 +22,6 @@
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 
-import org.apache.log4j.helpers.Constants;
 import org.apache.log4j.spi.LoggingEvent;
 import org.apache.log4j.spi.LoggingEventFieldResolver;
 
@@ -45,7 +44,7 @@
      * Date format.
      */
   private static final DateFormat DATE_FORMAT =
-          new SimpleDateFormat(Constants.TIMESTAMP_RULE_FORMAT);
+          new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
 
     /**
      * time stamp.

Modified: logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampInequalityRule.java
URL: http://svn.apache.org/viewvc/logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampInequalityRule.java?rev=569061&r1=569060&r2=569061&view=diff
==============================================================================
--- logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampInequalityRule.java (original)
+++ logging/log4j/companions/extras/trunk/src/main/java/org/apache/log4j/rule/TimestampInequalityRule.java Thu Aug 23 09:20:57 2007
@@ -22,7 +22,6 @@
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 
-import org.apache.log4j.helpers.Constants;
 import org.apache.log4j.spi.LoggingEvent;
 import org.apache.log4j.spi.LoggingEventFieldResolver;
 
@@ -45,7 +44,7 @@
      * Date format.
      */
   private static final DateFormat DATE_FORMAT =
-          new SimpleDateFormat(Constants.TIMESTAMP_RULE_FORMAT);
+          new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
     /**
      * Inequality symbol.
      */



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org