src/Comodojo/Foundation/Logging/Levels.php
public static function getLevel($level = null) {

        $level = strtoupper($level);

        if ( array_key_exists($level, self::$levels) ) return self::$levels[$level];

        return self::$levels[self::DEFAULT_LOG_LEVEL];

    }
public static function getLevel($level = null) {

        $level = strtoupper($level);

        if ( array_key_exists($level, self::$levels) ) return self::$levels[$level];

        return self::$levels[self::DEFAULT_LOG_LEVEL];

    }
public static function getLevel ( $ level = null ) { $ level = strtoupper ( $ level ) ; if ( array_key_exists ( $ level , self :: $ levels ) ) return self :: $ levels [ $ level ] ; return self :: $ levels [ self :: DEFAULT_LOG_LEVEL ] ; }
Map provided log level to level code

@param   string    $level

@return  integer
Map provided log level to level code