LogConfig constructor

const LogConfig({
  1. bool enabled = false,
  2. LogLevel globalLevel = LogLevel.info,
  3. bool enableClientLogs = true,
  4. bool enableAgentLogs = true,
  5. bool enableToolLogs = true,
  6. bool enableConsoleOutput = true,
  7. bool enableFileOutput = false,
  8. String? logFilePath,
})

Creates a new log configuration.

Implementation

const LogConfig({
  this.enabled = false,
  this.globalLevel = LogLevel.info,
  this.enableClientLogs = true,
  this.enableAgentLogs = true,
  this.enableToolLogs = true,
  this.enableConsoleOutput = true,
  this.enableFileOutput = false,
  this.logFilePath,
}) : assert(!enableFileOutput || (enableFileOutput && logFilePath != null),
          'logFilePath must be provided when enableFileOutput is true');