📝 trillium-logger — request/response logging
Structured request/response logging for trillium. The default formatter (dev_formatter) produces
concise colorized output suitable for development. Built-in apache_common and apache_combined
formatters are available for production use, and custom formatters can be composed from the
components in the formatters module.
Example
use ;
// default dev formatter — colorized, concise
let app = ;
// apache combined log format
let app = ;
// compose a custom format from components
let app = ;
// run with your chosen runtime adapter, e.g.:
// trillium_tokio::run(app);
Log output can be directed to stdout (default), a log crate backend, or any custom target
implementing Targetable.
Safety
This crate uses #![forbid(unsafe_code)].