public sealed class LoggingConfig : IMessage<LoggingConfig>, IEquatable<LoggingConfig>, IDeepCloneable<LoggingConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Storage Transfer v1 API class LoggingConfig.
Specifies the logging behavior for transfer operations.
For cloud-to-cloud transfers, logs are sent to Cloud Logging. See
Read transfer
logs for
details.
For transfers to or from a POSIX file system, logs are stored in the
Cloud Storage bucket that is the source or sink of the transfer.
See Managing Transfer for on-premises jobs
for details.
public RepeatedField<LoggingConfig.Types.LoggableAction> LogActions { get; }
Specifies the actions to be logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
[enable_onprem_gcs_transfer_logs][google.storagetransfer.v1.LoggingConfig.enable_onprem_gcs_transfer_logs]
instead.
public RepeatedField<LoggingConfig.Types.LoggableActionState> LogActionStates { get; }
States in which log_actions are logged. If empty, no logs are generated.
Not supported for transfers with PosixFilesystem data sources; use
[enable_onprem_gcs_transfer_logs][google.storagetransfer.v1.LoggingConfig.enable_onprem_gcs_transfer_logs]
instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the Storage Transfer v1 API class LoggingConfig is 2.8.0, and the page contains documentation for multiple versions, ranging down to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLoggingConfig\u003c/code\u003e class manages logging behavior for transfer operations, directing logs to Cloud Logging for cloud-to-cloud transfers and to the source or sink Cloud Storage bucket for transfers to or from a POSIX file system.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLoggingConfig\u003c/code\u003e has properties like \u003ccode\u003eEnableOnpremGcsTransferLogs\u003c/code\u003e, \u003ccode\u003eLogActions\u003c/code\u003e, and \u003ccode\u003eLogActionStates\u003c/code\u003e, which enable control over log generation and storage for transfers, though actions and states logging are not available for transfers involving PosixFilesystem data sources.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors, one default constructor, \u003ccode\u003eLoggingConfig()\u003c/code\u003e, and another which accepts another \u003ccode\u003eLoggingConfig\u003c/code\u003e object to duplicate its values, \u003ccode\u003eLoggingConfig(LoggingConfig other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]