protected internal static LogLevel ParseWithoutLogging(string value) { if (AbstractConfigurationReader.TryParseLogLevel(value, out var level)) { return(level); } return(ConsoleLogger.DefaultLogLevel); }
private static LogLevel ParseLogLevel(string valueAsString) { if (AbstractConfigurationReader.TryParseLogLevel(valueAsString, out var logLevel)) { return(logLevel); } throw new FormatException($"`{valueAsString}' is not a valid log level"); }