Skip to main content

init_tracing

Function init_tracing 

Source
pub fn init_tracing(filter: Option<&str>, jsonl: bool) -> Result<()>
Expand description

Initializes the global tracing subscriber.

Resolution order: RUST_LOG env > argument filter > DEFAULT_FILTER. Output goes to stderr. When jsonl is true, each log record is emitted as one JSON line (JSONL/NDJSON); otherwise human-readable text with ANSI colors auto-enabled when stderr is a terminal.