Sdílet prostřednictvím


WebHostBuilderExtensions.ConfigureLogging Metoda

Definice

Přetížení

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Přidá delegáta pro konfiguraci zadaného LoggerFactory. To může být volána vícekrát.

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Přidá delegáta pro konfiguraci zadaného ILoggingBuilder. To může být volána vícekrát.

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs

Přidá delegáta pro konfiguraci zadaného LoggerFactory. To může být volána vícekrát.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IWebHostBuilder, configureLogging As Action(Of WebHostBuilderContext, ILoggingBuilder)) As IWebHostBuilder

Parametry

hostBuilder
IWebHostBuilder

Nakonfigurujete IWebHostBuilder .

configureLogging
Action<WebHostBuilderContext,ILoggingBuilder>

Delegát, který konfiguruje LoggerFactory.

Návraty

Hodnota IWebHostBuilder

Platí pro

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs

Přidá delegáta pro konfiguraci zadaného ILoggingBuilder. To může být volána vícekrát.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IWebHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As IWebHostBuilder

Parametry

hostBuilder
IWebHostBuilder

Nakonfigurujete IWebHostBuilder .

configureLogging
Action<ILoggingBuilder>

Delegát, který konfiguruje ILoggingBuilder.

Návraty

Hodnota IWebHostBuilder

Platí pro