Udostępnij za pośrednictwem


ConsoleLoggerExtensions.AddConsole Metoda

Definicja

Przeciążenia

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Dodaje rejestrator konsoli o nazwie "Console" do fabryki.

AddConsole(ILoggingBuilder)

Dodaje rejestrator konsoli o nazwie "Console" do fabryki.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Źródło:
ConsoleLoggerExtensions.cs
Źródło:
ConsoleLoggerExtensions.cs

Dodaje rejestrator konsoli o nazwie "Console" do fabryki.

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

Parametry

builder
ILoggingBuilder

Do ILoggingBuilder użycia.

configure
Action<ConsoleLoggerOptions>

Pełnomocnik do skonfigurowania .Microsoft.Extensions.Logging.Console.ConsoleLogger

Zwraca

Dotyczy

AddConsole(ILoggingBuilder)

Źródło:
ConsoleLoggerExtensions.cs
Źródło:
ConsoleLoggerExtensions.cs

Dodaje rejestrator konsoli o nazwie "Console" do fabryki.

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

Parametry

builder
ILoggingBuilder

Do ILoggingBuilder użycia.

Zwraca

Dotyczy