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.