logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1342867 - /logging/log4php/trunk/src/main/php/Logger.php
Date Sat, 26 May 2012 09:22:16 GMT
Author: ihabunek
Date: Sat May 26 09:22:16 2012
New Revision: 1342867

URL: http://svn.apache.org/viewvc?rev=1342867&view=rev
Log:
LOG4PHP-178: Added typehint to Logger::setLevel()

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

Modified: logging/log4php/trunk/src/main/php/Logger.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/Logger.php?rev=1342867&r1=1342866&r2=1342867&view=diff
==============================================================================
--- logging/log4php/trunk/src/main/php/Logger.php (original)
+++ logging/log4php/trunk/src/main/php/Logger.php Sat May 26 09:22:16 2012
@@ -376,9 +376,12 @@ class Logger {
 	/**
 	 * Set the Logger level.
 	 *
+	 * Use LoggerLevel::getLevelXXX() methods to get a LoggerLevel object, e.g.
+	 * <code>$logger->setLevel(LoggerLevel::getLevelInfo());</code>
+	 *
 	 * @param LoggerLevel $level the level to set
 	 */
-	public function setLevel($level) {
+	public function setLevel(LoggerLevel $level) {
 		$this->level = $level;
 	}
 	



Mime
View raw message