Skip to main content

Module logging

Module logging 

Source
Expand description

tracing setup writing a daily-rolled log to logs/ next to the binary.

Two layers are installed:

  • a non-blocking file writer producing dicom-viewer.log.<YYYY-MM-DD> files (no ANSI colour, with target prefix);
  • the standard tracing-subscriber fmt::layer for stderr (so cargo run shows the logs).

The filter respects RUST_LOG, defaulting to info,wgpu_core=warn,wgpu_hal=warn,naga=warn when unset.

Functionsยง

init
Initialise global tracing.