SinglePrettyPrinter constructor
SinglePrettyPrinter({
- String? loggerName,
- bool colors = true,
- bool printCaller = true,
- bool printLocation = true,
- bool printFunctionName = true,
- bool printEmojis = true,
- bool printLabels = true,
- bool printTime = true,
- Level stackTraceLevel = Level.off,
- int? stackTraceMethodCount = defaultStackTraceMethodCount,
- String stackTracePrefix = defaultStackTracePrefix,
- Map<
Level, AnsiColor> ? levelColors, - Map<
Level, String> levelEmojis = defaultLevelEmojis, - Map<
Level, String> levelLabels = defaultLevelLabels, - TimeFormatter timeFormatter = formatTime,
Implementation
SinglePrettyPrinter({
this.loggerName,
this.colors = true,
this.printCaller = true,
this.printLocation = true,
this.printFunctionName = true,
this.printEmojis = true,
this.printLabels = true,
this.printTime = true,
this.stackTraceLevel = Level.off,
this.stackTraceMethodCount = defaultStackTraceMethodCount,
this.stackTracePrefix = defaultStackTracePrefix,
Map<Level, AnsiColor>? levelColors,
this.levelEmojis = defaultLevelEmojis,
this.levelLabels = defaultLevelLabels,
this.timeFormatter = formatTime,
}) : _levelColors = levelColors ?? defaultLevelColors;