Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class LoggingConfig.
Specifies the logging behavior for transfer operations.
Logs can be sent to Cloud Logging for all transfer types. SeeRead transfer
logsfor
details.
Generated from protobuf messagegoogle.storagetransfer.v1.LoggingConfig
Namespace
Google \ Cloud \ StorageTransfer \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ log_actions
array
Specifies the actions to be logged. If empty, no logs are generated.
↳ log_action_states
array
States in whichlog_actionsare logged. If empty, no logs are generated.
↳ enable_onprem_gcs_transfer_logs
bool
For PosixFilesystem transfers, enablesfile system transfer logsinstead of, or in addition to, Cloud Logging. This option ignores [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging will also be enabled for this transfer.
getLogActions
Specifies the actions to be logged. If empty, no logs are generated.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Storage Transfer V1 Client - Class LoggingConfig (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-storage-transfer/latest/V1.LoggingConfig)\n- [2.2.0](/php/docs/reference/cloud-storage-transfer/2.2.0/V1.LoggingConfig)\n- [2.1.1](/php/docs/reference/cloud-storage-transfer/2.1.1/V1.LoggingConfig)\n- [2.0.2](/php/docs/reference/cloud-storage-transfer/2.0.2/V1.LoggingConfig)\n- [1.5.0](/php/docs/reference/cloud-storage-transfer/1.5.0/V1.LoggingConfig)\n- [1.4.5](/php/docs/reference/cloud-storage-transfer/1.4.5/V1.LoggingConfig)\n- [1.3.1](/php/docs/reference/cloud-storage-transfer/1.3.1/V1.LoggingConfig)\n- [1.2.0](/php/docs/reference/cloud-storage-transfer/1.2.0/V1.LoggingConfig)\n- [1.1.1](/php/docs/reference/cloud-storage-transfer/1.1.1/V1.LoggingConfig)\n- [1.0.6](/php/docs/reference/cloud-storage-transfer/1.0.6/V1.LoggingConfig) \nReference documentation and code samples for the Google Cloud Storage Transfer V1 Client class LoggingConfig.\n\nSpecifies the logging behavior for transfer operations.\n\nLogs can be sent to Cloud Logging for all transfer types. See\n[Read transfer\nlogs](https://cloud.google.com/storage-transfer/docs/read-transfer-logs) for\ndetails.\n\nGenerated from protobuf message `google.storagetransfer.v1.LoggingConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ StorageTransfer \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLogActions\n\nSpecifies the actions to be logged. If empty, no logs are generated.\n\n### setLogActions\n\nSpecifies the actions to be logged. If empty, no logs are generated.\n\n### getLogActionStates\n\nStates in which `log_actions` are logged. If empty, no logs are generated.\n\n### setLogActionStates\n\nStates in which `log_actions` are logged. If empty, no logs are generated.\n\n### getEnableOnpremGcsTransferLogs\n\nFor PosixFilesystem transfers, enables\n[file system transfer\nlogs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format)\ninstead of, or in addition to, Cloud Logging.\n\nThis option ignores \\[LoggableAction\\] and \\[LoggableActionState\\]. If these\nare set, Cloud Logging will also be enabled for this transfer.\n\n### setEnableOnpremGcsTransferLogs\n\nFor PosixFilesystem transfers, enables\n[file system transfer\nlogs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format)\ninstead of, or in addition to, Cloud Logging.\n\nThis option ignores \\[LoggableAction\\] and \\[LoggableActionState\\]. If these\nare set, Cloud Logging will also be enabled for this transfer."]]