HostingHostBuilderExtensions.ConfigureLogging Método

Definición

Sobrecargas

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Agrega un delegado para configurar el objeto ILoggingBuilder proporcionado. Esto se puede llamar varias veces.

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Agrega un delegado para configurar el objeto ILoggingBuilder proporcionado. Esto se puede llamar varias veces.

ConfigureLogging(IHostBuilder, Action<HostBuilderContext,ILoggingBuilder>)

Agrega un delegado para configurar el objeto ILoggingBuilder proporcionado. Esto se puede llamar varias veces.

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

Parámetros

hostBuilder
IHostBuilder

El objeto IHostBuilder que se va a configurar.

configureLogging
Action<HostBuilderContext,ILoggingBuilder>

El delegado que configura ILoggingBuilder.

Devoluciones

IHostBuilder

La misma instancia de IHostBuilder para el encadenamiento.

Se aplica a

ConfigureLogging(IHostBuilder, Action<ILoggingBuilder>)

Agrega un delegado para configurar el objeto ILoggingBuilder proporcionado. Esto se puede llamar varias veces.

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

Parámetros

hostBuilder
IHostBuilder

El objeto IHostBuilder que se va a configurar.

configureLogging
Action<ILoggingBuilder>

El delegado que configura ILoggingBuilder.

Devoluciones

IHostBuilder

La misma instancia de IHostBuilder para el encadenamiento.

Se aplica a