Partager via


WebHostBuilder.ConfigureLogging(Action<ILoggerFactory>) Méthode

Définition

Ajoute un délégué pour configurer le ILoggerFactory fourni. Peut être appelée plusieurs fois.

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

Paramètres

configureLogging
Action<ILoggerFactory>

Délégué qui configure le ILoggerFactory.

Retours

L’IWebHostBuilderopérateur

Implémente

S’applique à