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\u003eThis page provides configuration details for initializing Google Cloud Logging through the \u003ccode\u003eLoggingServiceOptions\u003c/code\u003e class in version 4.4.0 of the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLoggingServiceOptions\u003c/code\u003e class allows you to set properties like \u003ccode\u003eClient\u003c/code\u003e, \u003ccode\u003eLogTarget\u003c/code\u003e, \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eServiceName\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e to customize how logs are managed and identified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLoggerDiagnosticsOutput\u003c/code\u003e property enables diagnostics info output, including the URL where logs can be found, to a specified \u003ccode\u003eTextWriter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify a \u003ccode\u003eProjectId\u003c/code\u003e or rely on automatic detection when running on Google Cloud, allowing for flexible log storage location configuration.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceName\u003c/code\u003e and \u003ccode\u003eVersion\u003c/code\u003e properties enable the inclusion of service context information in the log entry's JSON payload for better tracking and analysis.\u003c/p\u003e\n"]]],[],null,[]]