Compartir vía


EnrichmentServiceCollectionExtensions.AddLogEnricher Método

Definición

Sobrecargas

AddLogEnricher(IServiceCollection, ILogEnricher)

Registra una instancia del enriquecidor de registro.

AddLogEnricher<T>(IServiceCollection)

Registra un tipo de enriquecidor de registro.

AddLogEnricher(IServiceCollection, ILogEnricher)

Source:
EnrichmentServiceCollectionExtensions.cs

Registra una instancia del enriquecidor de registro.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Diagnostics::Enrichment::ILogEnricher ^ enricher);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher enricher);
static member AddLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogEnricher (services As IServiceCollection, enricher As ILogEnricher) As IServiceCollection

Parámetros

services
IServiceCollection

Contenedor de inserción de dependencias al que se va a agregar la instancia del enriquecidor.

enricher
ILogEnricher

Instancia del enriquecidor que se va a agregar.

Devoluciones

El valor de services.

Excepciones

services o enricher es null.

Se aplica a

AddLogEnricher<T>(IServiceCollection)

Source:
EnrichmentServiceCollectionExtensions.cs

Registra un tipo de enriquecidor de registro.

public:
generic <typename T>
 where T : class, Microsoft::Extensions::Diagnostics::Enrichment::ILogEnricher[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogEnricher<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where T : class, Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher;
static member AddLogEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher)
<Extension()>
Public Function AddLogEnricher(Of T As {Class, ILogEnricher}) (services As IServiceCollection) As IServiceCollection

Parámetros de tipo

T

Tipo de enriquecimiento.

Parámetros

services
IServiceCollection

Contenedor de inserción de dependencias al que se va a agregar el tipo de enriquecido.

Devoluciones

El valor de services.

Excepciones

services es null.

Se aplica a