class

HTTP::LogHandler

Inherits HTTP::Handler / Reference / Object

A handler that logs the request method, resource, status code, and the time used to execute the next handler

NOTE: To use LogHandler, you must explicitly import it with require "http"

Constructors

new(log : Log = Log.for("http.server"))
Source

Instance methods

call(context : HTTP::Server::Context) : Nil
Source