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

Serilog.Exceptions.Destructurers.IExceptionDestructurer

public interface IExceptionDestructurer
Interface that all exception destructurers that want to be registered must implement. Exception destructurer must explicitly declare which types it can destructure using TargetTypes property.
namespace Serilog.Exceptions.Destructurers { public interface IExceptionDestructurer { Type[] TargetTypes { get; } void Destructure(Exception exception, IExceptionPropertiesBag propertiesBag, Func<Exception, IReadOnlyDictionary<string, object>> destructureException); } }