Class ConsoleLoggerExtensions (1.0.0)

public static 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.

configureAction<GoogleCloudConsoleFormatterOptions>

A delegate to configure options for the formatter.

Returns
TypeDescription
ILoggingBuilder

The original logging builder, for method chaining.