public static function getLevelValue($name)
    {
        $name = strtoupper($name);
        $map = (new \ReflectionClass(self::class))->getConstants();

        return (isset($map[$name]))? $map[$name] : null;
    }
public static function getLevelValue($name)
    {
        $name = strtoupper($name);
        $map = (new \ReflectionClass(self::class))->getConstants();

        return (isset($map[$name]))? $map[$name] : null;
    }
public static function getLevelValue ( $ name ) { $ name = strtoupper ( $ name ) ; $ map = ( new \ ReflectionClass ( self :: class ) ) -> getConstants ( ) ; return ( isset ( $ map [ $ name ] ) ) ? $ map [ $ name ] : null ; }
Gets the log level value by name

@param $name

@return null
Gets the log level value by name