Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging(verbosity: u8, is_tui: bool)
Expand description

Initialize the global tracing subscriber.

Must be called early in main(), before any SDK calls (which emit tracing events).

  • verbosity: from the -v flag count. 0 = warn (or RUST_LOG fallback), 1 = info, 2 = debug, 3+ = trace.
  • is_tui: when true, omits the stderr layer (ratatui owns the terminal).