Serilog.Exceptions.Core.DestructuringOptionsBuilder
Accumulates destructuring options to be used by the ExceptionEnricher.
Default set of destructurers. Destructurers cover all of the exceptions from standard library.
Filter that ignores StackTrace and Exception.TargetSite properties.
Usually, they can be safely ignored, because Serilog attaches them tog LogEvent already.
Gets a collection of destructurers that will be used to handle exception.
Gets the maximum depth of destructuring to which reflection destructurer will proceed.
Gets a value indicating whether to disable the reflection based destructurer.
Gets a global filter, that will be applied to every destructured property just before it is added to the result.
Gets the name of the property which value will be filled with destructured exception.
public DestructuringOptionsBuilder()
Adds destructurers for a known set of exceptions from standard library.
public DestructuringOptionsBuilder WithDestructurers(IEnumerable<IExceptionDestructurer> destructurers)
Accumulates destructurers to be used by ExceptionEnricher.
Sets a maximum destructuring depth that ExceptionEnricher will reach during destructuring of
unknown exception type.
Sets a filter that will be used by ExceptionEnricher. Only one filter can be set, second
invocation of this method throws InvalidOperationException.
Sets a filter that will be used by ExceptionEnricher. The filter ignores
StackTrace and Exception.TargetSite properties. Only one filter can
be set, second invocation of this method throws InvalidOperationException.
Disable reflection based destructurer.
You may want to disable this destructurer if you need full control
over the process of destructuring and want to provide all the destructurers yourself.
Sets a property name that will be used by ExceptionEnricher.