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 document provides details on the \u003ccode\u003eLoggingServiceOptions\u003c/code\u003e class, which is used to configure Google Cloud Logging in .NET applications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLoggingServiceOptions\u003c/code\u003e class allows configuration of 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 control how logs are handled and stored.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eLoggingServiceOptions\u003c/code\u003e is 5.2.0, and the document also contains information regarding versions 5.1.0, 5.0.0, 4.4.0, and 4.3.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogTarget\u003c/code\u003e and \u003ccode\u003eProjectId\u003c/code\u003e properties enable the specification of the Google Cloud project or organization where logs should be stored, with the ability to auto-detect the project ID when running on Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServiceName\u003c/code\u003e and \u003ccode\u003eVersion\u003c/code\u003e can be configured to enhance log entries with service context information, which will be found in the serviceContext field of the log entry JSON payload.\u003c/p\u003e\n"]]],[],null,[]]