Skip to main content

Module logging

Module logging 

Source
Expand description

Logging setup using tracing + tracing-subscriber.

Initializes a global tracing subscriber with two layers:

  • File layer (always): writes to ~/.local/share/sonos/sonos.log, truncated per session.
  • Stderr layer (CLI only): writes to stderr. Disabled in TUI mode to avoid corrupting the display.

Functionsยง

init_logging
Initialize the global tracing subscriber.