pub fn init_logging()Expand description
Initialize logging and tracing from the MINIR_LOG environment variable.
When the tracing-output feature is enabled (default), this configures
tracing-subscriber with an env filter read from MINIR_LOG (e.g.
MINIR_LOG=debug). The tracing subscriber also bridges log records, so
existing log::* calls are captured too.
When only the logging feature is enabled, this configures env_logger
as a fallback. When neither feature is enabled, this is a no-op.
ยงExamples
MINIR_LOG=debug cargo run -- -e '1+1' # shows evaluation trace
MINIR_LOG=trace cargo run -- -e '1+1' # shows all trace-level detail
MINIR_LOG=r=debug cargo run -- -e '1+1' # only miniR debug output