LogConfig constructor

LogConfig({
  1. bool showTimestamp = true,
  2. bool showTimeOnly = true,
  3. bool showDateOnly = true,
  4. bool showLevel = true,
  5. bool showTag = true,
  6. bool showThread = true,
  7. bool useHumanReadableTime = true,
  8. bool showEmoji = true,
  9. bool showLocation = true,
  10. List<LogStep>? steps,
})

Creates a new LogConfig with custom display options.

All options are enabled by default.

Configuration class that controls the appearance and content of log output.

Used by various log printers to determine which pieces of information should be included and how they should be formatted.

Implementation

LogConfig({
  this.showTimestamp = true,
  this.showTimeOnly = true,
  this.showDateOnly = true,
  this.showLevel = true,
  this.showTag = true,
  this.showThread = true,
  this.useHumanReadableTime = true,
  this.showEmoji = true,
  this.showLocation = true,
  List<LogStep>? steps,
}) : steps = steps ?? LogStep.defaultSteps;