logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1213712 - /logging/log4php/trunk/src/main/php/LoggerAppender.php
Date Tue, 13 Dec 2011 14:31:44 GMT
Author: ihabunek
Date: Tue Dec 13 14:31:44 2011
New Revision: 1213712

URL: http://svn.apache.org/viewvc?rev=1213712&view=rev
Log:
Minor improvement in LoggerAppender - using LoggerConfigurable method in setter.

Modified:
    logging/log4php/trunk/src/main/php/LoggerAppender.php

Modified: logging/log4php/trunk/src/main/php/LoggerAppender.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/LoggerAppender.php?rev=1213712&r1=1213711&r2=1213712&view=diff
==============================================================================
--- logging/log4php/trunk/src/main/php/LoggerAppender.php (original)
+++ logging/log4php/trunk/src/main/php/LoggerAppender.php Tue Dec 13 14:31:44 2011
@@ -230,11 +230,7 @@ abstract class LoggerAppender extends Lo
 	 * @see LoggerOptionConverter::toLevel()
 	 */
 	public function setThreshold($threshold) {
-		if($threshold instanceof LoggerLevel) {
-			$this->threshold = $threshold;
-		} else {
-			$this->threshold = LoggerOptionConverter::toLevel($threshold, null);
-		}
+		$this->setLevel('threshold', $threshold);
 	}
 	
 	/**



Mime
View raw message