logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r423737 - /logging/log4j/trunk/src/java/org/apache/log4j/varia/LogFilePatternReceiver.java
Date Thu, 20 Jul 2006 03:24:25 GMT
Author: sdeboy
Date: Wed Jul 19 20:24:24 2006
New Revision: 423737

URL: http://svn.apache.org/viewvc?rev=423737&view=rev
Log:
Trim level...supports padding of level field even if the logFormat doesn't have level surrounded
by spaces
(should have probably done this instead of the prior multi-whitespace-regexp commit, but the
prior commit doesn't seem harmful..)

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

Modified: logging/log4j/trunk/src/java/org/apache/log4j/varia/LogFilePatternReceiver.java
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/java/org/apache/log4j/varia/LogFilePatternReceiver.java?rev=423737&r1=423736&r2=423737&view=diff
==============================================================================
--- logging/log4j/trunk/src/java/org/apache/log4j/varia/LogFilePatternReceiver.java (original)
+++ logging/log4j/trunk/src/java/org/apache/log4j/varia/LogFilePatternReceiver.java Wed Jul
19 20:24:24 2006
@@ -720,7 +720,7 @@
     }
 
     level = (String) fieldMap.remove(LEVEL);
-    Level levelImpl = Level.toLevel(level);
+    Level levelImpl = Level.toLevel(level.trim());
 
     threadName = (String) fieldMap.remove(THREAD);
 



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


Mime
View raw message