Author: grobmeier
Date: Sat May 23 22:39:05 2009
New Revision: 778050

URL: http://svn.apache.org/viewvc?rev=778050&view=rev
Log:
reused is..logging source code

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

Modified: incubator/log4php/trunk/src/main/php/Logger.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/Logger.php?rev=778050&r1=778049&r2=778050&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/Logger.php (original)
+++ incubator/log4php/trunk/src/main/php/Logger.php Sat May 23 22:39:05 2009
@@ -307,11 +307,7 @@
         * @return boolean
         */
        public function isDebugEnabled() {
-               $debugLevel = LoggerLevel::getLevelDebug(); 
-               if($this->repository->isDisabled($debugLevel)) {
-                       return false;
-               }
-               return 
($debugLevel->isGreaterOrEqual($this->getEffectiveLevel()));
+               return $this->isEnabledFor(LoggerLevel::getLevelDebug());
        }               
 
        /**
@@ -333,11 +329,7 @@
         * @see LoggerLevel
         */
        public function isInfoEnabled() {
-               $infoLevel = LoggerLevel::getLevelInfo();
-               if($this->repository->isDisabled($infoLevel)) {
-                       return false;
-               }
-               return 
($infoLevel->isGreaterOrEqual($this->getEffectiveLevel()));
+               return $this->isEnabledFor(LoggerLevel::getLevelInfo());
        } 
 
        /**


Reply via email to