resetConfiguration static method
void
resetConfiguration()
Restores the default logger configuration.
Implementation
static void resetConfiguration() {
_colors = true;
_printEmojis = true;
_lineLength = _defaultLineLength;
_methodCount = _defaultMethodCount;
_timedMethodCount = _defaultTimedMethodCount;
_errorMethodCount = _defaultErrorMethodCount;
_output = LogPrint();
_nowProvider = DateTime.now;
_levelColors = {
Level.trace: AnsiColor.fg(AnsiColor.grey(0.5)),
Level.debug: const AnsiColor.fg(28),
Level.info: const AnsiColor.fg(32),
Level.warning: const AnsiColor.fg(214),
Level.error: const AnsiColor.fg(196),
Level.fatal: const AnsiColor.fg(199),
};
_levelEmojis = {
Level.trace: '🔍',
Level.debug: '🛠️',
Level.info: '💡',
Level.warning: '⚠️',
Level.error: '💣',
Level.fatal: '☠️',
};
_filter.level = Logger.level;
_lastPrintTimes.clear();
_rebuildLoggers();
}