SinglePrettyPrinter constructor

SinglePrettyPrinter({
  1. String? loggerName,
  2. bool colors = true,
  3. bool printCaller = true,
  4. bool printLocation = true,
  5. bool printFunctionName = true,
  6. bool printEmojis = true,
  7. bool printLabels = true,
  8. bool printTime = true,
  9. Level stackTraceLevel = Level.off,
  10. int? stackTraceMethodCount = defaultStackTraceMethodCount,
  11. String stackTracePrefix = defaultStackTracePrefix,
  12. Map<Level, AnsiColor>? levelColors,
  13. Map<Level, String> levelEmojis = defaultLevelEmojis,
  14. Map<Level, String> levelLabels = defaultLevelLabels,
  15. 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;