WebHostBuilderExtensions.ConfigureLogging Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) |
Ajoute un délégué pour configurer le LoggerFactory fourni. Peut être appelée plusieurs fois. |
ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>) |
Ajoute un délégué pour configurer le ILoggingBuilder fourni. Peut être appelée plusieurs fois. |
ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
Ajoute un délégué pour configurer le LoggerFactory fourni. Peut être appelée plusieurs fois.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IWebHostBuilder, configureLogging As Action(Of WebHostBuilderContext, ILoggingBuilder)) As IWebHostBuilder
Paramètres
- hostBuilder
- IWebHostBuilder
IWebHostBuilder à configurer.
- configureLogging
- Action<WebHostBuilderContext,ILoggingBuilder>
Délégué qui configure le LoggerFactory.
Retours
L’IWebHostBuilderopérateur
S’applique à
ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
- Source:
- WebHostBuilderExtensions.cs
Ajoute un délégué pour configurer le ILoggingBuilder fourni. Peut être appelée plusieurs fois.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureLogging(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureLogging (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IWebHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As IWebHostBuilder
Paramètres
- hostBuilder
- IWebHostBuilder
IWebHostBuilder à configurer.
- configureLogging
- Action<ILoggingBuilder>
Délégué qui configure le ILoggingBuilder.
Retours
L’IWebHostBuilderopérateur