ConsoleLoggerExtensions.AddJsonConsole Method

Definition

Overloads

AddJsonConsole(ILoggingBuilder)

Adds a console log formatter named 'json' to the factory with default properties.

AddJsonConsole(ILoggingBuilder, Action<JsonConsoleFormatterOptions>)

Adds a console log formatter named 'json' to the factory configured with the specified Json console formatter options.

AddJsonConsole(ILoggingBuilder)

Adds a console log formatter named 'json' to the factory with default properties.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddJsonConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddJsonConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddJsonConsole : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddJsonConsole (builder As ILoggingBuilder) As ILoggingBuilder

Parameters

builder
ILoggingBuilder

The current logging builder instance to use.

Returns

ILoggingBuilder

The current logging builder instance so that additional calls can be chained.

Applies to

AddJsonConsole(ILoggingBuilder, Action<JsonConsoleFormatterOptions>)

Adds a console log formatter named 'json' to the factory configured with the specified Json console formatter options.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddJsonConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::Console::JsonConsoleFormatterOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddJsonConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.Console.JsonConsoleFormatterOptions> configure);
static member AddJsonConsole : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.Console.JsonConsoleFormatterOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddJsonConsole (builder As ILoggingBuilder, configure As Action(Of JsonConsoleFormatterOptions)) As ILoggingBuilder

Parameters

builder
ILoggingBuilder

The current logging builder instance to use.

configure
Action<JsonConsoleFormatterOptions>

A delegate to configure the console logger options for the built-in json log formatter.

Returns

ILoggingBuilder

The current logging builder instance so that additional calls can be chained.

Applies to