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.
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.
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLoggingServiceOptions\u003c/code\u003e class provides configuration settings for initializing Google Cloud Logging within a .NET application.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for setting 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 and \u003ccode\u003eProjectId\u003c/code\u003e properties can automatically detect the Google Cloud project ID when running on Google Cloud, simplifying setup.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLoggingServiceOptions\u003c/code\u003e includes properties \u003ccode\u003eServiceName\u003c/code\u003e and \u003ccode\u003eVersion\u003c/code\u003e that can be set to add to the serviceContext field of the log entry JSON payload.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides version information for the \u003ccode\u003eLoggingServiceOptions\u003c/code\u003e class, with the latest being 5.2.0, and earlier versions being available such as 5.1.0, 5.0.0, 4.4.0 and 4.3.1.\u003c/p\u003e\n"]]],[],null,[]]