IWebHostBuilder.UseLoggerFactory(ILoggerFactory) Methode

Definition

Geben Sie die ILoggerFactory vom Webhost verwendete Verwendung an.

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

IWebHostBuilder

Das IWebHostBuilder.

Gilt für: