Class CorrelationIdLogEnricher
- Namespace
- Cratis.Applications.Execution
- Assembly
- Cratis.Applications.dll
Represents an implementation of Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher that enriches logs with the current correlation ID.
public class CorrelationIdLogEnricher : ILogEnricher
- Inheritance
-
CorrelationIdLogEnricher
- Implements
-
ILogEnricher
- Inherited Members
Constructors
CorrelationIdLogEnricher(ICorrelationIdAccessor)
Represents an implementation of Microsoft.Extensions.Diagnostics.Enrichment.ILogEnricher that enriches logs with the current correlation ID.
public CorrelationIdLogEnricher(ICorrelationIdAccessor correlationIdAccessor)
Parameters
correlationIdAccessor
ICorrelationIdAccessorThe accessor for the current correlation ID.
Methods
Enrich(IEnrichmentTagCollector)
Collects tags for a log record.
public void Enrich(IEnrichmentTagCollector collector)
Parameters
collector
IEnrichmentTagCollectorWhere the enricher puts the tags it produces.