Skip to main content

is_enabled

Function is_enabled 

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

Check if a log level is enabled.

Use this to avoid expensive log message construction when the level is filtered out.