Skip to main content

init_logger

Function init_logger 

Source
pub fn init_logger(verbose: bool)
Expand description

Initialize the logging system with tracing.

Two layers, each with its OWN filter:

  • the file layer (~/.mermaid/mermaid.log), scoped by RUST_LOG / --verbose exactly as before;
  • the always-on TraceRing with a fixed mermaid-at-TRACE filter, so mermaid feedback can export recent events without a reproduce-under- RUST_LOG round trip.