(value: string | undefined): LogLevel | undefined Parses and validates a log level string.
value
The value to parse as a log level
string | undefinedreturns
LogLevel | undefined The validated log level, or undefined if value is undefined
throws
Error- if value is provided but invalid