Serilog.Configuration.LoggerEnrichmentConfiguration
Controls enrichment configuration.
public static LoggerConfiguration Wrap(LoggerEnrichmentConfiguration loggerEnrichmentConfiguration, Func<ILogEventEnricher, ILogEventEnricher> wrapEnricher, Action<LoggerEnrichmentConfiguration> configureWrappedEnricher)
Helper method for wrapping sinks.
public LoggerConfiguration AtLevel(LogEventLevel enrichFromLevel, Action<LoggerEnrichmentConfiguration> configureEnricher)
Apply an enricher only to events with a LogEventLevel greater than or equal to enrichFromLevel.
public LoggerConfiguration AtLevel(LoggingLevelSwitch levelSwitch, Action<LoggerEnrichmentConfiguration> configureEnricher)
Apply an enricher only to events with a LogEventLevel greater than or equal to the level specified by levelSwitch.
Enrich log events with properties from LogContext.
public LoggerConfiguration When(Func<LogEvent, bool> condition, Action<LoggerEnrichmentConfiguration> configureEnricher)
Apply an enricher only when condition evaluates to true.
Specifies one or more enrichers that may add properties dynamically to
log events.
Specifies an enricher that may add properties dynamically to
log events.
Include the specified property value in all events logged to the logger.