Partilhar via


ConsoleLoggerExtensions.AddConsole Método

Definição

Sobrecargas

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Adiciona um agente de console chamado 'Console' à fábrica.

AddConsole(ILoggingBuilder)

Adiciona um agente de console chamado 'Console' à fábrica.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Origem:
ConsoleLoggerExtensions.cs
Origem:
ConsoleLoggerExtensions.cs
Origem:
ConsoleLoggerExtensions.cs

Adiciona um agente de console chamado 'Console' à fábrica.

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

O ILoggingBuilder a ser usado.

configure
Action<ConsoleLoggerOptions>

Um delegado para configurar o Microsoft.Extensions.Logging.Console.ConsoleLogger.

Retornos

Aplica-se a

AddConsole(ILoggingBuilder)

Origem:
ConsoleLoggerExtensions.cs
Origem:
ConsoleLoggerExtensions.cs
Origem:
ConsoleLoggerExtensions.cs

Adiciona um agente de console chamado 'Console' à fábrica.

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

O ILoggingBuilder a ser usado.

Retornos

Aplica-se a