pub fn is_enabled(level: LogLevel) -> bool
Check if a log level is enabled.
Use this to avoid expensive log message construction when the level is filtered out.