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

public sealed class GoogleCloudConsoleFormatter : ConsoleFormatter, IDisposable

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

Console formatter for use with Google Cloud Logging.

Inheritance

object > ConsoleFormatter > GoogleCloudConsoleFormatter

Implements

IDisposable

Namespace

Google.Cloud.Logging.Console

Assembly

Google.Cloud.Logging.Console.dll

Constructors

GoogleCloudConsoleFormatter(IOptionsMonitor<GoogleCloudConsoleFormatterOptions>)

public GoogleCloudConsoleFormatter(IOptionsMonitor<GoogleCloudConsoleFormatterOptions> optionsMonitor)

Constructs a new formatter which uses the specified monitor to retrieve options and watch for options changes.

Parameter
NameDescription
optionsMonitorIOptionsMonitorGoogleCloudConsoleFormatterOptions

The monitor to observe for changes in options. Must not be null.

Properties

FormatterName

public static string FormatterName { get; }

The name for the Google Cloud console formatter.

Property Value
TypeDescription
string

Methods

Write<TState>(in LogEntry<TState>, IExternalScopeProvider, TextWriter)

public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider scopeProvider, TextWriter textWriter)
Parameters
NameDescription
logEntryLogEntry
scopeProviderIExternalScopeProvider
textWriterTextWriter
Type Parameter
NameDescription
TState
Overrides