configure static method
void
configure({})
Updates logger behavior without changing the static calling style.
Implementation
static void configure({
Level? level,
LogOutput? output,
bool? colors,
bool? printEmojis,
int? lineLength,
int? methodCount,
int? timedMethodCount,
int? errorMethodCount,
DateTime Function()? nowProvider,
Map<Level, AnsiColor>? levelColors,
Map<Level, String>? levelEmojis,
}) {
if (output != null) {
_output = output;
}
if (colors != null) {
_colors = colors;
}
if (printEmojis != null) {
_printEmojis = printEmojis;
}
if (lineLength != null) {
_lineLength = lineLength;
}
if (methodCount != null) {
_methodCount = methodCount;
}
if (timedMethodCount != null) {
_timedMethodCount = timedMethodCount;
}
if (errorMethodCount != null) {
_errorMethodCount = errorMethodCount;
}
if (nowProvider != null) {
_nowProvider = nowProvider;
}
if (levelColors != null) {
_levelColors = Map<Level, AnsiColor>.from(levelColors);
}
if (levelEmojis != null) {
_levelEmojis = Map<Level, String>.from(levelEmojis);
}
_rebuildLoggers();
if (level != null) {
setLevel(level);
}
}