IWebHostBuilder.UseLoggerFactory(ILoggerFactory) Methode

Definition

Geben Sie den an, der ILoggerFactory vom Webhost verwendet werden soll.

public:
 Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseLoggerFactory(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public Microsoft.AspNetCore.Hosting.IWebHostBuilder UseLoggerFactory (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
abstract member UseLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
Public Function UseLoggerFactory (loggerFactory As ILoggerFactory) As IWebHostBuilder

Parameter

loggerFactory
ILoggerFactory

Der zu verwendende ILoggerFactory.

Gibt zurück

Die IWebHostBuilder.

Gilt für: