src/Writer/AbstractWriter.php
public function isLevelEnabled(string $level, int $level_num = null)
    {
        if ($level_num === null)
            $level_num = Logger::getLevelNumeric($level);
        return $level_num >= $this->min_level;
    }
public function isLevelEnabled(string $level, int $level_num = null)
    {
        if ($level_num === null)
            $level_num = Logger::getLevelNumeric($level);
        return $level_num >= $this->min_level;
    }
public function isLevelEnabled ( string $ level , int $ level_num = null ) { if ( $ level_num === null ) $ level_num = Logger :: getLevelNumeric ( $ level ) ; return $ level_num >= $ this -> min_level ; }
Return if a message of a specific level would be accepted
@param string $level The LogLevel
@param int $level_num The level as int, with 0 being DEBUG and 8 being EMERGENCY. When omitted,
it is obtained from Logger.
@return bool True if a message with this level would be accepted, false it it would be dropped.
Return if a message of a specific level would be accepted