Sdílet prostřednictvím


WebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Metoda

Definice

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

public:
 virtual 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
override this.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

Implementuje

Platí pro