Skip to main content

log_level_increment

Function log_level_increment 

Source
pub fn log_level_increment() -> u8
Expand description

Bump the stored verbosity by one, saturating at LOG_LEVEL_MAX.

The actual tracing filter is set once at log_init time; this updates a numeric counter that downstream subsystems read to gate periodic-verbose output.

ยงExamples

use dynomite::core::log::{log_level_increment, log_level_set};
log_level_set(3);
assert_eq!(log_level_increment(), 4);