Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Module log

Module log 

Source
Expand description

Verbosity-gated stderr logger driven by a single global level. Use the [log_debug], [log_info], [log_warn], and [log_error] macros from the crate root rather than calling debug/info/warn/error directly when you want lazy formatting.

Functionsยง

debug
Log a debug message (only shown with --verbose).
error
Log an error message (always shown).
info
Log an informational message (shown by default, suppressed with --quiet).
init
Initialize the logger with the given verbosity offset from default (0).
warn
Log a warning message (shown unless -qq).