copyWith method

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

Creates a copy of this configuration with the specified changes.

Implementation

LogConfig copyWith({
  bool? enabled,
  LogLevel? globalLevel,
  bool? enableClientLogs,
  bool? enableAgentLogs,
  bool? enableToolLogs,
  bool? enableConsoleOutput,
  bool? enableFileOutput,
  String? logFilePath,
}) {
  return LogConfig(
    enabled: enabled ?? this.enabled,
    globalLevel: globalLevel ?? this.globalLevel,
    enableClientLogs: enableClientLogs ?? this.enableClientLogs,
    enableAgentLogs: enableAgentLogs ?? this.enableAgentLogs,
    enableToolLogs: enableToolLogs ?? this.enableToolLogs,
    enableConsoleOutput: enableConsoleOutput ?? this.enableConsoleOutput,
    enableFileOutput: enableFileOutput ?? this.enableFileOutput,
    logFilePath: logFilePath ?? this.logFilePath,
  );
}