public function levelToJSLogger($level)
    {
        switch ($level) {
            case Client::LOG_LEVEL_WARN:
                return 'warn'; break;
            case Client::LOG_LEVEL_ERROR:
            case Client::LOG_LEVEL_FATAL:
                return 'error'; break;
            case Client::LOG_LEVEL_INFO:
                return 'info'; break;
            case Client::LOG_LEVEL_DEBUG:
            default:
                return 'log'; break;
        }
    }