本文整理汇总了PHP中LoggerLevel::isGreaterOrEqual方法的典型用法代码示例。如果您正苦于以下问题:PHP LoggerLevel::isGreaterOrEqual方法的具体用法?PHP LoggerLevel::isGreaterOrEqual怎么用?PHP LoggerLevel::isGreaterOrEqual使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LoggerLevel
的用法示例。
在下文中一共展示了LoggerLevel::isGreaterOrEqual方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isAsSevereAsThreshold
/**
* 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 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());
}
示例2: isEnabledFor
/**
* Check whether this Logger is enabled for a given Level passed as parameter.
*
* @param LoggerLevel $level
* @return boolean
*/
public function isEnabledFor($level)
{
return (bool) $level->isGreaterOrEqual($this->getEffectiveLevel());
}
示例3: isEnabledFor
/**
* Check whether this Logger is enabled for a given Level passed as parameter.
*
* @param LoggerLevel level
* @return boolean
*/
public function isEnabledFor(LoggerLevel $level)
{
return $level->isGreaterOrEqual($this->getEffectiveLevel());
}
示例4: isAsSevereAsThreshold
/**
* 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 LoggerLevel $priority
* @return boolean true if priority is greater or equal than threshold
*/
function isAsSevereAsThreshold($priority)
{
if ($this->threshold === null) {
return true;
}
return $priority->isGreaterOrEqual($this->getThreshold());
}