Partage via


HostingHostBuilderExtensions.ConfigureLogging Méthode

Définition

Surcharges

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

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

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

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

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of HostBuilderContext, ILoggingBuilder)) As IHostBuilder

Paramètres

hostBuilder
IHostBuilder

IHostBuilder à configurer.

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

Délégué qui configure le ILoggingBuilder.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Source:
HostingHostBuilderExtensions.cs
Source:
HostingHostBuilderExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureLogging(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureLogging (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureLogging (hostBuilder As IHostBuilder, configureLogging As Action(Of ILoggingBuilder)) As IHostBuilder

Paramètres

hostBuilder
IHostBuilder

IHostBuilder à configurer.

configureLogging
Action<ILoggingBuilder>

Délégué qui configure le ILoggingBuilder.

Retours

La même instance du IHostBuilder pour le chaînage.

S’applique à