Google.Cloud.Logging.Console - Class GoogleCloudConsoleFormatterOptions (1.1.0)

See more code actions.
public class GoogleCloudConsoleFormatterOptions : ConsoleFormatterOptions

Reference documentation and code samples for the Google.Cloud.Logging.Console class GoogleCloudConsoleFormatterOptions.

Options for GoogleCloudConsoleFormatter.

object > ConsoleFormatterOptions > GoogleCloudConsoleFormatterOptions

Namespace

Google.Cloud.Logging.Console

Assembly

Google.Cloud.Logging.Console.dll

Properties

TraceGoogleCloudProjectId

public string TraceGoogleCloudProjectId { get; set; }

The ID of the Google Cloud Project where trace data is being written to Google Cloud Trace. Optional. Set this property to enable Google Cloud Trace and Logging correlation.

Property Value
TypeDescription
string
Remarks

This property has no effect on where log entries are written to. It also has no effect on whether trace information is actually exported to Google Cloud Trace or to which Google Cloud Project traces are exported to. When set, this property informs the Console Logger to include trace context information (if any) on the log entries, assuming the trace information is being stored on the specified Google Cloud Project. Note that when running your code in Google Cloud, for instance in Google Cloud Run, trace information is automatically collected and exported by the runtime.