Expand description
Runtime-adjustable log level.
Avestruz logs to one place: stderr, which cosmic-panel forwards to the systemd journal, and which is the terminal when the applet is run from one.
main builds the tracing subscriber with its filter wrapped in a
[tracing_subscriber::reload] layer, then installs a reload hook here
with install_reload_hook. The settings view calls
set_console_level to change how much is logged live, without a
restart: an applet has no command line to set RUST_LOG on.
Statics§
- RELOAD 🔒
Functions§
- install_
reload_ hook - Register the reload hook. Called once from
mainafter the tracing subscriber is initialized. Later calls are ignored. - level_
set_ by_ environment - Whether
RUST_LOGsays how much to log. If it does, it is whatmainwent by, and it keeps precedence over the setting. - set_
console_ level - Apply a new log level at runtime.
Type Aliases§
- Reload
Hook 🔒 - Rebuilds the filter for a level and swaps it into the live subscriber.
Installed once by
main.