Compartir a través de


LoggingServiceCollectionExtensions.AddLogging Método

Definición

Sobrecargas

AddLogging(IServiceCollection)

Agrega servicios de registro a la instancia de IServiceCollection especificada.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Agrega servicios de registro a la instancia de IServiceCollection especificada.

AddLogging(IServiceCollection)

Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs

Agrega servicios de registro a la instancia de IServiceCollection especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogging (services As IServiceCollection) As IServiceCollection

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs

Agrega servicios de registro a la instancia de IServiceCollection especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configure);
static member AddLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogging (services As IServiceCollection, configure As Action(Of ILoggingBuilder)) As IServiceCollection

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

configure
Action<ILoggingBuilder>

El delegado de configuración de ILoggingBuilder.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a