<PackageReference Include="Serilog" Version="4.3.2-dev-02433" />

Serilog.Configuration.LoggerEnrichmentConfiguration

Controls enrichment configuration.
public static LoggerConfiguration Wrap(LoggerEnrichmentConfiguration loggerEnrichmentConfiguration, Func<ILogEventEnricher, ILogEventEnricher> wrapEnricher, Action<LoggerEnrichmentConfiguration> configureWrappedEnricher)

Helper method for wrapping sinks.

Apply an enricher only to events with a LogEventLevel greater than or equal to enrichFromLevel.

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.

public LoggerConfiguration With<TEnricher>() where TEnricher : ILogEventEnricher

Specifies an enricher that may add properties dynamically to log events.

public LoggerConfiguration WithProperty(string name, object value, bool destructureObjects = false)

Include the specified property value in all events logged to the logger.