Expand description
axlogger — A simple, configurable request logger for Axum.
Logs each HTTP request in this format:
PROJECT | METHOD | PATH | STATUS | DURATION | TIMESTAMP
The displayed fields can be configured through logger_config.toml
without recompiling the application.
Structs§
- Logger
Config - All logger configuration options.
Functions§
- init_
logger_ config - Loads the configuration file and initializes global logger settings.
- logger_
middleware - Main logging middleware for
axum::middleware::from_fn.