protected function logInformation()
    {
        if ($this->logger) {
            $level = $this->info["http_code"] > 0 && $this->info["http_code"] < 400
                ? LogLevel::INFO
                : LogLevel::ERROR;
            $this->info["method"] = $this->method;
            $this->logger->log($level, $this->logFormat, $this->info);
        }
    }
protected function logInformation()
    {
        if ($this->logger) {
            $level = $this->info["http_code"] > 0 && $this->info["http_code"] < 400
                ? LogLevel::INFO
                : LogLevel::ERROR;
            $this->info["method"] = $this->method;
            $this->logger->log($level, $this->logFormat, $this->info);
        }
    }
protected function logInformation ( ) { if ( $ this -> logger ) { $ level = $ this -> info [ "http_code" ] > 0 && $ this -> info [ "http_code" ] < 400 ? LogLevel :: INFO : LogLevel :: ERROR ; $ this -> info [ "method" ] = $ this -> method ; $ this -> logger -> log ( $ level , $ this -> logFormat , $ this -> info ) ; } }
Logs request information when logging is enabled
Logs request information when logging is enabled