Expand description
Stderr logger gated by a single config boolean.
When logging is true (the default), records from our crates at level
debug and above (debug/warn/error) are written to stderr. When
false, nothing is emitted. Output is restricted to our crates so
third-party libraries don’t pollute the terminal.
RUST_LOG is still honored when set — useful for ad-hoc debugging — and
is parsed as an env_logger-style spec with the configured baseline as
the fallback default.
Functions§
- format_
duration - Format a
Durationin a friendly form:523ms,2.341s,1m 32s,5m. - init
- Initialize the global logger.