Exemplo n.º 1
0
 /**
  * Check whether this Logger is enabled for a given Level passed as parameter.
  *
  * @param LoggerLevel level
  * @return boolean
  */
 public function isEnabledFor(Payone_Log4php_LoggerLevel $level)
 {
     return $level->isGreaterOrEqual($this->getEffectiveLevel());
 }
 /**
  * Checks whether the message level is below the appender's threshold. 
  *
  * If there is no threshold set, then the return value is always <i>true</i>.
  * 
  * @param Payone_Log4php_LoggerLevel $level
  * @return boolean Returns true if level is greater or equal than 
  *   threshold, or if the threshold is not set. Otherwise returns false.
  */
 public function isAsSevereAsThreshold($level)
 {
     if ($this->threshold === null) {
         return true;
     }
     return $level->isGreaterOrEqual($this->getThreshold());
 }