resolve

Returns the normalized (trimmed, uppercased) log level, or null when neither overrides nor config specifies one.

Throws

if the specified level is not one of allowedLevels