Author: sdeboy
Date: Thu Jul 29 00:35:30 2010
New Revision: 980277

URL: http://svn.apache.org/viewvc?rev=980277&view=rev
Log:
Some locales represent simpledateformatted-text with characters other than 
alpha/numeric (dot in French locales for the month)..use /S when building the 
pattern that can parse the timestamp format instead of /w to account for that 
situation

Modified:
    
logging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java

Modified: 
logging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java
URL: 
http://svn.apache.org/viewvc/logging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java?rev=980277&r1=980276&r2=980277&view=diff
==============================================================================
--- 
logging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java
 (original)
+++ 
logging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java
 Thu Jul 29 00:35:30 2010
@@ -600,7 +600,9 @@ public class LogFilePatternReceiver exte
    * @return string
    */
   private String convertTimestamp() {
-    return util.substitute("s/("+VALID_DATEFORMAT_CHAR_PATTERN+")+/\\\\w+/g", 
timestampFormat);
+    //some locales (for example, French) generate timestamp text with 
characters not included in \w -
+    // now using \S (all non-whitespace characters) instead of /w 
+    return util.substitute("s/("+VALID_DATEFORMAT_CHAR_PATTERN+")+/\\\\S+/g", 
timestampFormat);
   }
 
     protected void setHost(String host) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to