Parses a log level from a name (case-insensitive, e.g. "DEBUG") or a number (Python's numeric scheme). Out-of-range numbers are clamped to [CRITICAL, EXTREME], matching Python's constructor behaviour. Unknown names fall back to fallback.
"DEBUG"
[CRITICAL, EXTREME]
fallback
name, number, or empty.
Optional
LogLevel used when value is missing or unrecognised. Defaults to LogLevel.NOTICE.
value
a LogLevel value.
Parses a log level from a name (case-insensitive, e.g.
"DEBUG") or a number (Python's numeric scheme). Out-of-range numbers are clamped to[CRITICAL, EXTREME], matching Python's constructor behaviour. Unknown names fall back tofallback.