Skip to main content

Module logger

Module logger 

Source
Expand description

Provides logging initialization for the web server.

Logs are emitted to stderr by default. When a file path is supplied via init’s log_file parameter (CLI: --log-file, env: SERVER_LOG_FILE, config: log-file) the server additionally streams logs to that file using [tracing_appender::non_blocking]. A background thread drains a lock-free queue so the request path is never blocked by disk I/O. ANSI escape codes are always disabled for file output regardless of --log-with-ansi.

Enums§

LogFormat
Logging output format.

Functions§

init
Logging system initialization.