ConsoleLoggerExtensions.AddConsole Método

Definición

Sobrecargas

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Agrega un registrador de consola denominado "Console" al generador.

AddConsole(ILoggingBuilder)

Agrega un registrador de consola denominado "Console" al generador.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Source:
ConsoleLoggerExtensions.cs
Source:
ConsoleLoggerExtensions.cs

Agrega un registrador de consola denominado "Console" al generador.

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

Parámetros

builder
ILoggingBuilder

Objeto ILoggingBuilder que se va a usar.

configure
Action<ConsoleLoggerOptions>

Un delegado para configurar la instancia de Microsoft.Extensions.Logging.Console.ConsoleLogger.

Devoluciones

Se aplica a

AddConsole(ILoggingBuilder)

Source:
ConsoleLoggerExtensions.cs
Source:
ConsoleLoggerExtensions.cs

Agrega un registrador de consola denominado "Console" al generador.

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

Parámetros

builder
ILoggingBuilder

Objeto ILoggingBuilder que se va a usar.

Devoluciones

Se aplica a