public TextWriter LoggerDiagnosticsOutput { get; set; }
A TextWriter to write diagnostics info about loggers created
with these LoggingOptions.
Currently the only diagnostics info we provide is the URL where the logs written
with these options can be found.
Where to log to. May 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 log target.
The Google Cloud Project ID to store the logs in.
May be null if running on Google Cloud, in which case, and if LogTarget 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 LogTarget 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 latest version of the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e package is 5.2.0, with version 4.3.1 also being documented on this page.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLoggingServiceOptions\u003c/code\u003e is a class used for configuring Google Cloud Logging, inheriting from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThis configuration class allows you to set properties such as \u003ccode\u003eClient\u003c/code\u003e, \u003ccode\u003eLoggerDiagnosticsOutput\u003c/code\u003e, \u003ccode\u003eLogTarget\u003c/code\u003e, \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eServiceName\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e to customize logging behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogTarget\u003c/code\u003e property determines where the logs are sent, and can be automatically detected when running on Google Cloud or manually set using \u003ccode\u003eProjectId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceName\u003c/code\u003e and \u003ccode\u003eVersion\u003c/code\u003e properties are used to populate the \u003ccode\u003eserviceContext\u003c/code\u003e field of the JSON log entry.\u003c/p\u003e\n"]]],[],null,[]]