0.22.5 (latest) 0.22.4 0.21.0 0.20.0 0.19.0 0.18.0 0.17.37 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.2 0.2.0 0.1.2

    LogsPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

LogsPolicy describes if and how a job's logs are preserved. Logs
include information that is automatically written by the Batch
service agent and any information that you configured the job's
runnables to write to the `stdout` or `stderr` streams.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `destination` | `https://docs.cloud.google.com/python/docs/reference/batch/latest/google.cloud.batch_v1.types.LogsPolicy.Destination` If and where logs should be saved. |
| `logs_path` | `str` When `destination` is set to `PATH`, you must set this field to the path where you want logs to be saved. This path can point to a local directory on the VM or (if congifured) a directory under the mount path of any Cloud Storage bucket, network file system (NFS), or writable persistent disk that is mounted to the job. For example, if the job has a bucket with `mountPath` set to `/mnt/disks/my-bucket`, you can write logs to the root directory of the `remotePath` of that bucket by setting this field to `/mnt/disks/my-bucket/`. |
| `cloud_logging_option` | `https://docs.cloud.google.com/python/docs/reference/batch/latest/google.cloud.batch_v1.types.LogsPolicy.CloudLoggingOption` Optional. When `destination` is set to `CLOUD_LOGGING`, you can optionally set this field to configure additional settings for Cloud Logging. |

## Classes

### CloudLoggingOption

    CloudLoggingOption(mapping=None, *, ignore_unknown_fields=False, **kwargs)

`CloudLoggingOption` contains additional settings for Cloud
Logging logs generated by Batch job.

### Destination

    Destination(value)

The destination (if any) for logs.