/** * Check 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 Ideasa_Log4php_LoggerLevel $level * @return boolean true if priority is greater or equal than threshold */ public function isAsSevereAsThreshold($level) { if ($this->threshold === null) { return true; } return $level->isGreaterOrEqual($this->getThreshold()); }