<PackageReference Include="Serilog.Exceptions" Version="7.0.0" />

Serilog.Exceptions.Core.ExceptionEnricher

public sealed class ExceptionEnricher : ILogEventEnricher
Enrich a LogEvent with details about an Exception if present.

Initializes a new instance of the ExceptionEnricher class.

public ExceptionEnricher(IDestructuringOptions destructuringOptions)

Initializes a new instance of the ExceptionEnricher class.

public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)

Enriches logEvent with a destructured exception's properties. If the exception is not present, no action is taken.