Skip to main content

trace_enabled

Function trace_enabled 

Source
pub fn trace_enabled(level: TraceLevel) -> bool
Expand description

Whether level is currently being traced.

TraceLevel::All enables both categories; asking for TraceLevel::Off is always false (there is nothing to trace at that level), so a caller cannot accidentally turn a guard into a no-op by passing it.