Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging()
Expand description

Installs a stderr [tracing] subscriber.

Filter resolution order:

  1. RUST_LOG (standard [tracing_subscriber::EnvFilter])
  2. else if env_debug_enabled, tvscreener=debug,info
  3. else info

Logs go to stderr so CLI/MCP stdout stays for data / protocol.

Requires the cli Cargo feature (pulled in by mcp, tui, and apps).

ยงPanics

Panics if a global subscriber was already set (call once at process start).