Condividi tramite


WebHostBuilderExtensions.ConfigureLogging Metodo

Definizione

Overload

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Aggiunge un delegato per la configurazione dell'oggetto LoggerFactory fornito. Può essere chiamato più volte.

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Aggiunge un delegato per la configurazione dell'oggetto ILoggingBuilder fornito. Può essere chiamato più volte.

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Origine:
WebHostBuilderExtensions.cs
Origine:
WebHostBuilderExtensions.cs
Origine:
WebHostBuilderExtensions.cs

Aggiunge un delegato per la configurazione dell'oggetto LoggerFactory fornito. Può essere chiamato più volte.

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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

configureLogging
Action<WebHostBuilderContext,ILoggingBuilder>

Delegato che configura LoggerFactory.

Restituisce

Oggetto IWebHostBuilder.

Si applica a

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Origine:
WebHostBuilderExtensions.cs
Origine:
WebHostBuilderExtensions.cs
Origine:
WebHostBuilderExtensions.cs

Aggiunge un delegato per la configurazione dell'oggetto ILoggingBuilder fornito. Può essere chiamato più volte.

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

Parametri

hostBuilder
IWebHostBuilder

Oggetto IWebHostBuilder da configurare.

configureLogging
Action<ILoggingBuilder>

Delegato che configura ILoggingBuilder.

Restituisce

Oggetto IWebHostBuilder.

Si applica a