Skip to main content

init_tracing

Function init_tracing 

Source
pub fn init_tracing() -> bool
Expand description

Install a default tracing subscriber.

  • Reads filter directives from RUST_LOG; defaults to info for the rustrade crates and warn for everything else when unset.
  • Uses the tracing-subscriber “fmt” formatter with target + level + message; no ANSI colours when not on a TTY.
  • Returns true if this call installed the subscriber, false if a subscriber was already installed (e.g. by the host) — either way, logging is wired up.