Condividi tramite


ConsoleLoggerExtensions.AddConsole Metodo

Definizione

Overload

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Aggiunge un logger della console denominato 'Console' alla factory.

AddConsole(ILoggingBuilder)

Aggiunge un logger della console denominato 'Console' alla factory.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Origine:
ConsoleLoggerExtensions.cs
Origine:
ConsoleLoggerExtensions.cs
Origine:
ConsoleLoggerExtensions.cs

Aggiunge un logger della console denominato 'Console' alla factory.

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

Parametri

builder
ILoggingBuilder

Oggetto ILoggingBuilder da usare.

configure
Action<ConsoleLoggerOptions>

Delegato per la configurazione dell'oggetto Microsoft.Extensions.Logging.Console.ConsoleLogger.

Restituisce

Si applica a

AddConsole(ILoggingBuilder)

Origine:
ConsoleLoggerExtensions.cs
Origine:
ConsoleLoggerExtensions.cs
Origine:
ConsoleLoggerExtensions.cs

Aggiunge un logger della console denominato 'Console' alla factory.

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

Parametri

builder
ILoggingBuilder

Oggetto ILoggingBuilder da usare.

Restituisce

Si applica a