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

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
Name Description
builder ILoggingBuilder

The builder to configure.

Returns
Type Description
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
Name Description
builder ILoggingBuilder

The builder to configure.

configure ActionGoogleCloudConsoleFormatterOptions

A delegate to configure options for the formatter.

Returns
Type Description
ILoggingBuilder

The original logging builder, for method chaining.