initLoggers function
Implementation
void initLoggers(logging.Level level, Set<logging.Logger> loggers) {
logging.hierarchicalLoggingEnabled = true;
for (final logger in loggers) {
if (!_activeLoggers.contains(logger)) {
print('Initializing logger: ${logger.name}');
logger
..level = level
..onRecord.listen(printLog);
_activeLoggers.add(logger);
}
}
}