Parses a log level from either a string or LogLevel enum value.
When a string is provided, the parsing is case-insensitive.
The log level as a string or LogLevel enum value.
The corresponding LogLevel enum value, or undefined if invalid.
Parses a log level from either a string or LogLevel enum value.
When a string is provided, the parsing is case-insensitive.