parseLoggingLevel

Attempts to parse one of the standard logging levels defined by Levels from a string. The provided string is checked against the names of each of the defined logging levels, and the level whose name matches is returned, ignoring capitalization or whitespace.

parseLoggingLevel
(
string s
)

Parameters

s string

The string to parse.

Return Value

Type: Level

The level that was parsed, or if none was found, a LoggingException is thrown.