public static class ConsoleLoggerExtensions
Extension methods to make it easier to configure GoogleCloudConsoleFormatter.
Namespace
Google.Cloud.Logging.ConsoleAssembly
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 | Action<GoogleCloudConsoleFormatterOptions> A delegate to configure options for the formatter. |
Returns | |
---|---|
Type | Description |
ILoggingBuilder | The original logging builder, for method chaining. |