configLogging function

void configLogging({
  1. Level show = Level.INFO,
})

Logging-Level-Configuration

Usage:

main() {
    final Logger _logger = new Logger("unit.test.Logging");
    configLogging(show: Level.INFO);

    ...
}

Implementation

void configLogging({final Level show: Level.INFO}) {
  hierarchicalLoggingEnabled = true;
  Logger.root.level = show;
  Logger.root.onRecord.listen(logToConsole);
}