Where to send error reports to. Will ultimately represent a Google Project or Organization.
May be set by setting ProjectId.
May be null if running on Google Cloud in which case the
Google Cloud Platform project ID will be detected from the platform
and used to build the event target.
The Google Cloud Project ID to store the logs in.
May be null if running on Google Cloud, in which case, and if EventTarget is
also null the project ID will be detected from the platform
and used to build the log target.
This is an alternate way to set EventTarget for Project.
[[["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\u003eErrorReportingServiceOptions\u003c/code\u003e class configures settings for initializing error reporting in the Google Cloud Diagnostics framework.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides properties to define the \u003ccode\u003eClient\u003c/code\u003e, \u003ccode\u003eEventTarget\u003c/code\u003e, \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eServiceName\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e for error reporting.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEventTarget\u003c/code\u003e property specifies where to send error reports, which can be a Google Project or Organization and can be inferred from the platform if running on Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eProjectId\u003c/code\u003e allows for a direct way to set the Google Cloud project ID, serving as an alternative to setting \u003ccode\u003eEventTarget\u003c/code\u003e for project-specific logging.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eClient\u003c/code\u003e property allows the setting of a log client to log entries, the type being \u003ccode\u003eLoggingServiceV2Client\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]