Пример #1
0
 /**
  * Checks if the given log level is above the set threshold.
  * 
  * @param  string  $level One of \Psr\Log\LogLevel constants.
  * @return boolean
  */
 public function isInLogThreshold($level)
 {
     return LogLevels::isHigherLevel($level, $this->levelThreshold, true);
 }
Пример #2
0
 /**
  * @covers ::isLowerLevel
  * @dataProvider provideLowerLevels
  */
 public function testIsLowerLevel($level, $against, $isLower, $inclusive = false)
 {
     $this->assertEquals($isLower, LogLevels::isLowerLevel($level, $against, $inclusive));
 }