copyWith method
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,
);
}