public function log(Request $request, Response $response): void
    {
        $host = $request->url();
        $method = $request->method();
        $agent = $request->userAgent();
        $date = $this->date($response->getDate());
        $status = $response->status();
        $style = $this->style($status);

        $this->output->writeln(
            sprintf("%s %s %s <$style>%d</$style> %s", $host, $date, $method, $status, $agent)
        );
    }
public function log(Request $request, Response $response): void
    {
        $host = $request->url();
        $method = $request->method();
        $agent = $request->userAgent();
        $date = $this->date($response->getDate());
        $status = $response->status();
        $style = $this->style($status);

        $this->output->writeln(
            sprintf("%s %s %s <$style>%d</$style> %s", $host, $date, $method, $status, $agent)
        );
    }
public function log ( Request $ request , Response $ response ) : void { $ host = $ request -> url ( ) ; $ method = $ request -> method ( ) ; $ agent = $ request -> userAgent ( ) ; $ date = $ this -> date ( $ response -> getDate ( ) ) ; $ status = $ response -> status ( ) ; $ style = $ this -> style ( $ status ) ; $ this -> output -> writeln ( sprintf ( "%s %s %s <$style>%d</$style> %s" , $ host , $ date , $ method , $ status , $ agent ) ) ; }
Access log.

@param \Illuminate\Http\Request $request
@param \Symfony\Component\HttpFoundation\Response $response
Access log .