livery_access_log (livery v0.2.0)

View Source

Access-log middleware.

Emits one structured log entry per completed request via the OTP logger module. Pairs cleanly with livery_request_id: the id is included in the entry so log aggregators can join request lines with the response sent to the client.

The log level defaults to info and can be overridden in state: #{level => debug | info | notice | ...}.

Summary

Functions

Run the handler and log one entry on the way out.

Functions

call(Req, Next, State)

Run the handler and log one entry on the way out.