/** * 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); }
/** * @covers ::isLowerLevel * @dataProvider provideLowerLevels */ public function testIsLowerLevel($level, $against, $isLower, $inclusive = false) { $this->assertEquals($isLower, LogLevels::isLowerLevel($level, $against, $inclusive)); }