コード例 #1
0
ファイル: AbstractWriter.php プロジェクト: michaldudek/clog
 /**
  * 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 ::isHigherLevel
  * @dataProvider provideHigherLevels
  */
 public function testIsHigherLevel($level, $against, $isHigher, $inclusive = false)
 {
     $this->assertEquals($isHigher, LogLevels::isHigherLevel($level, $against, $inclusive));
 }