Skip to main content

enabled

Function enabled 

Source
pub fn enabled(level: LogLevel) -> bool
Expand description

True if a record at level would be emitted — lets a macro skip formatting entirely when the level is filtered out (zero cost for disabled logs).