Author: grobmeier
Date: Sat May 23 20:59:14 2009
New Revision: 778023

URL: http://svn.apache.org/viewvc?rev=778023&view=rev
Log:
should be possible to add an object instead of a string as a matching level

Modified:
    incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php

Modified: 
incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php?rev=778023&r1=778022&r2=778023&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php 
(original)
+++ incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php Sat 
May 23 20:59:14 2009
@@ -74,7 +74,11 @@
         * @param string $l the level to match
         */
        function setLevelToMatch($l) {
-               $this->levelToMatch = LoggerOptionConverter::toLevel($l, null);
+               if(is_a($l, 'LoggerLevel')) {
+                   $this->levelToMatch = $l;
+               } else {
+                       $this->levelToMatch = 
LoggerOptionConverter::toLevel($l, null);
+               }
        }
 
        /**


Reply via email to