You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2012/05/26 11:22:16 UTC

svn commit: r1342867 - /logging/log4php/trunk/src/main/php/Logger.php

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;
 	}