<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.
Type[] TargetTypes { get; }

Gets a collection of types of exception that the destructurer can handle.

void Destructure(Exception exception, IExceptionPropertiesBag propertiesBag, Func<Exception, IReadOnlyDictionary<string, object>> destructureException)

Destructures given exception. It's properties are to be put in propertiesBag.