private function getLevel($level)
    {
        $result = \common_Logger::TRACE_LEVEL;
        switch ($level) {
            case 'fatal' :
                $result = \common_Logger::FATAL_LEVEL;
                break;
            case 'error' :
                $result = \common_Logger::ERROR_LEVEL;
                break;
            case 'warn' :
                $result = \common_Logger::WARNING_LEVEL;
                break;
            case 'info' :
                $result = \common_Logger::INFO_LEVEL;
                break;
            case 'debug' :
                $result = \common_Logger::DEBUG_LEVEL;
                break;
            case 'trace' :
                $result = \common_Logger::DEBUG_LEVEL;
                break;
        }
        return $result;
    }
private function getLevel($level)
    {
        $result = \common_Logger::TRACE_LEVEL;
        switch ($level) {
            case 'fatal' :
                $result = \common_Logger::FATAL_LEVEL;
                break;
            case 'error' :
                $result = \common_Logger::ERROR_LEVEL;
                break;
            case 'warn' :
                $result = \common_Logger::WARNING_LEVEL;
                break;
            case 'info' :
                $result = \common_Logger::INFO_LEVEL;
                break;
            case 'debug' :
                $result = \common_Logger::DEBUG_LEVEL;
                break;
            case 'trace' :
                $result = \common_Logger::DEBUG_LEVEL;
                break;
        }
        return $result;
    }
private function getLevel ( $ level ) { $ result = \ common_Logger :: TRACE_LEVEL ; switch ( $ level ) { case 'fatal' : $ result = \ common_Logger :: FATAL_LEVEL ; break ; case 'error' : $ result = \ common_Logger :: ERROR_LEVEL ; break ; case 'warn' : $ result = \ common_Logger :: WARNING_LEVEL ; break ; case 'info' : $ result = \ common_Logger :: INFO_LEVEL ; break ; case 'debug' : $ result = \ common_Logger :: DEBUG_LEVEL ; break ; case 'trace' : $ result = \ common_Logger :: DEBUG_LEVEL ; break ; } return $ result ; }
Map log level
@todo make it compatible with PRS-3 log levels
@param $level
@return int
Map log level