The path to which logs are saved when the destination = PATH. This can be a
local file path on the VM, or under the mount point of a Persistent Disk or
Filestore, or a Cloud Storage path.
[[["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 \u003ccode\u003eLogsPolicy\u003c/code\u003e class in the Google Cloud Batch v1 API defines how outputs from a Job's Tasks (stdout/stderr) are preserved.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.13.0 is the latest release, with versions ranging down to 1.0.0 for the \u003ccode\u003eLogsPolicy\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogsPolicy\u003c/code\u003e class implements interfaces such as \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\u003eKey properties of the \u003ccode\u003eLogsPolicy\u003c/code\u003e class include \u003ccode\u003eCloudLoggingOption\u003c/code\u003e, \u003ccode\u003eDestination\u003c/code\u003e, and \u003ccode\u003eLogsPath\u003c/code\u003e, which control where logs are stored and how.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available: a default \u003ccode\u003eLogsPolicy()\u003c/code\u003e and one that takes another \u003ccode\u003eLogsPolicy\u003c/code\u003e object as a parameter for cloning.\u003c/p\u003e\n"]]],[],null,[]]