Skip to main content

Module access_log

Module access_log 

Source
Expand description

Structured HTTP access log middleware.

Emits one tracing::info! event per completed request with the following fields: pid, request_id, trace_id, method, uri, remote_addr, remote_addr_ip, remote_addr_port, content_length, user_agent, duration_ms, duration (µs), status, bytes_sent.

Functions§

access_log_middleware
Middleware that emits a structured access log line for every HTTP request.