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 2007/08/10 07:29:42 UTC

svn commit: r564467 - /logging/log4j/companions/receivers/trunk/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java

Author: sdeboy
Date: Thu Aug  9 22:29:41 2007
New Revision: 564467

URL: http://svn.apache.org/viewvc?view=rev&rev=564467
Log:
Make LEVEL optional for logfilepatternreceiver (see http://issues.apache.org/bugzilla/show_bug.cgi?id=43075)

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?view=diff&rev=564467&r1=564466&r2=564467
==============================================================================
--- 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 Aug  9 22:29:41 2007
@@ -735,7 +735,7 @@
     }
 
     level = (String) fieldMap.remove(LEVEL);
-    Level levelImpl = Level.toLevel(level.trim());
+    Level levelImpl = (level == null ? Level.DEBUG : 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