src/Debugger/ChromeLogger.php
public function writeToResponse(ResponseInterface $response): ResponseInterface
    {
        if ($this->entries !== []) {
            $value = $this->getHeaderValue();

            $this->entries = [];

            return $response->withHeader(self::HEADER_NAME, $value);
        }

        return $response;
    }
public function writeToResponse(ResponseInterface $response): ResponseInterface
    {
        if ($this->entries !== []) {
            $value = $this->getHeaderValue();

            $this->entries = [];

            return $response->withHeader(self::HEADER_NAME, $value);
        }

        return $response;
    }
public function writeToResponse ( ResponseInterface $ response ) : ResponseInterface { if ( $ this -> entries !== [ ] ) { $ value = $ this -> getHeaderValue ( ) ; $ this -> entries = [ ] ; return $ response -> withHeader ( self :: HEADER_NAME , $ value ) ; } return $ response ; }
Adds headers for recorded log-entries in the ChromeLogger format, and clear the internal log-buffer.

(You should call this at the end of the request/response cycle in your PSR-7 project, e.g.
immediately before emitting the Response.)

@param ResponseInterface $response

@return ResponseInterface
Adds headers for recorded log - entries in the ChromeLogger format and clear the internal log - buffer .