toLoggingLevel function

Level toLoggingLevel(
  1. Level level
)

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`'));