Skip to main content

Module debug

Module debug 

Source

Enums§

DebugLevel
Debug level configuration for custom debug macros

Functions§

init_log_bridge
Initialize the log crate bridge. Call this once from main() instead of env_logger::init(). Routes all log::info!() etc. calls to the par-term debug log file. When RUST_LOG is set, also mirrors to stderr for terminal debugging.
is_enabled
Check if debugging is enabled at given level (for custom debug macros)
log
Log a message at specified level (for custom debug macros)
log_path
Get the path to the debug log file.
logf
Log formatted message (for custom debug macros)
set_log_level
Update the log level at runtime (e.g., from settings UI). This only changes log::max_level() — the bridge itself always writes whatever passes the filter.