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

public static class ConsoleLoggerExtensions

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

Extension methods to make it easier to configure GoogleCloudConsoleFormatter.

Inheritance

object > ConsoleLoggerExtensions

Namespace

Google.Cloud.Logging.Console

Assembly

Google.Cloud.Logging.Console.dll

Methods

AddGoogleCloudConsole(ILoggingBuilder)

public static ILoggingBuilder AddGoogleCloudConsole(this ILoggingBuilder builder)

Adds GoogleCloudConsoleFormatter to the given logging builder.

Parameter
NameDescription
builderILoggingBuilder

The builder to configure.

Returns
TypeDescription
ILoggingBuilder

The original logging builder, for method chaining.

AddGoogleCloudConsole(ILoggingBuilder, Action<GoogleCloudConsoleFormatterOptions>)

public static ILoggingBuilder AddGoogleCloudConsole(this ILoggingBuilder builder, Action<GoogleCloudConsoleFormatterOptions> configure)

Adds GoogleCloudConsoleFormatter to the given logging builder, with an action to configure options.

Parameters
NameDescription
builderILoggingBuilder

The builder to configure.

configureActionGoogleCloudConsoleFormatterOptions

A delegate to configure options for the formatter.

Returns
TypeDescription
ILoggingBuilder

The original logging builder, for method chaining.