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 sd...@apache.org on 2006/07/20 05:24:25 UTC
svn commit: r423737 -
/logging/log4j/trunk/src/java/org/apache/log4j/varia/LogFilePatternReceiver.java
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