configLogging function
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);
}