Udostępnij za pośrednictwem


WebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Metoda

Definicja

Dodaje delegata do konfigurowania podanego ILoggerFactoryelementu . Może to być wywoływane wiele razy.

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>

Delegat, który konfiguruje element ILoggerFactory.

Zwraca

Element IWebHostBuilder.

Implementuje

Dotyczy