protected function getLogLevel(RequestInterface $request)
    {
        if (!$this->logLevel) {
            return $this->getDefaultLogLevel();
        }

        if (is_callable($this->logLevel)) {
            return call_user_func($this->logLevel, $request);
        }

        return (string) $this->logLevel;
    }
protected function getLogLevel(RequestInterface $request)
    {
        if (!$this->logLevel) {
            return $this->getDefaultLogLevel();
        }

        if (is_callable($this->logLevel)) {
            return call_user_func($this->logLevel, $request);
        }

        return (string) $this->logLevel;
    }
protected function getLogLevel ( RequestInterface $ request ) { if ( ! $ this -> logLevel ) { return $ this -> getDefaultLogLevel ( ) ; } if ( is_callable ( $ this -> logLevel ) ) { return call_user_func ( $ this -> logLevel , $ request ) ; } return ( string ) $ this -> logLevel ; }
Returns a log level for a given response.

@param RequestInterface $request The request being logged.

@return string LogLevel
Returns a log level for a given response .