toLoggingLevel function
Converts a Level to a logging.Level
.
Implementation
logging.Level toLoggingLevel(Level level) =>
logging.Level.LEVELS.firstWhere((l) => l.name == level.name,
orElse: () => throw StateError('Unrecognized level `$level`'));