Class CorrelationIdHostBuilderExtensions
- Namespace
- Microsoft.Extensions.Hosting
- Assembly
- Cratis.Applications.dll
Extension methods for IHostBuilder for adding the correlation Id log enricher.
public static class CorrelationIdHostBuilderExtensions
- Inheritance
-
CorrelationIdHostBuilderExtensions
- Inherited Members
Methods
AddCorrelationIdLogEnricher(IHostBuilder)
Adds the correlation ID enricher to the logging configuration.
public static IHostBuilder AddCorrelationIdLogEnricher(this IHostBuilder builder)
Parameters
builder
IHostBuilderThe host builder.
Returns
- IHostBuilder
The host builder for chaining.