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

Serilog.Exceptions.Destructurers.ReflectionBasedDestructurer

Destructures exceptions by gathering all public non-indexer properties using reflection and then dynamically retrieving their values. This class can handle every exception including those with circular references and throwing properties. Additionally, a "Type" property is added to let the user know exact type of destructured exception.
public Type[] TargetTypes { get; }

public ReflectionBasedDestructurer(int destructuringDepth)

Initializes a new instance of the ReflectionBasedDestructurer class.

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