initLoggers function
Implementation
void initLoggers(Level level, Set<Logger> loggers) {
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);
}
}
}