LoggingOptions constructor

const LoggingOptions({
  1. LogLevel level = LogLevel.info,
  2. bool showTime = true,
  3. bool showEmoji = true,
  4. bool logInRelease = false,
  5. bool useDebugPrint = false,
  6. LogFormatter? formatter,
})

Constructs an instance of LoggingOptions.

  • showTime: Whether to include the timestamp in the log message. Defaults to true.
  • showEmoji: Whether to include an emoji representing the log level. Defaults to true.
  • logInRelease: Whether logging is enabled in release builds. Defaults to false.
  • level: The minimum log level that will be displayed. Defaults to LogLevel.info.
  • chunkSize: The maximum size of a log message chunk. Defaults to 1024.
  • coloredOutput: Whether to use colored text for the console output. Defaults to false.
  • formatter: An optional custom formatter for log messages. If not provided, a default formatter is used.

Implementation

const LoggingOptions({
  this.level = LogLevel.info,
  this.showTime = true,
  this.showEmoji = true,
  this.logInRelease = false,
  this.useDebugPrint = false,
  this.formatter,
});