Skip to main content

Crate axlogger

Crate axlogger 

Source
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§

LoggerConfig
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.