Skip to main content

Module logging

Module logging 

Source
Expand description

schedr’s own logs (see archive/PROJECT.md, Observability): stdout, JSON in pods and readable text in a terminal, with RUST_LOG-style level filters.

Enums§

ResolvedFormat
The format actually used once auto is resolved.

Functions§

init
Installs the global logger. Returns false if one was already installed (only the first call in a process takes effect).
level_filter
The level filter for [log] level, e.g. info or info,schedr_master=debug.
quiet_sqlx_options
A filter dropping sqlx’s connect-options events (sqlx_postgres::options) whatever [log] level says: a layer of its own, so no directive of the level (sqlx_postgres::options::parse=debug) brings them back.
resolve_format
Resolves [log] format: auto is text in a terminal and JSON otherwise (pods).