Sdílet prostřednictvím


IWebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Metoda

Definice

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

public:
 Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Action<Microsoft::Extensions::Logging::ILoggerFactory ^> ^ configureLogging);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (Action<Microsoft.Extensions.Logging.ILoggerFactory> configureLogging);
abstract member ConfigureLogging : Action<Microsoft.Extensions.Logging.ILoggerFactory> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function ConfigureLogging (configureLogging As Action(Of ILoggerFactory)) As IWebHostBuilder

Parametry

configureLogging
Action<ILoggerFactory>

Delegát, který konfiguruje ILoggerFactory.

Návraty

Hodnota IWebHostBuilder

Platí pro