ErrorRecordEnricher class

Enriches Serilog log events with error record and invocation info from WrapperException.

public class ErrorRecordEnricher : ILogEventEnricher

Public Members

name description
ErrorRecordEnricher() Initializes a new instance of the ErrorRecordEnricher class.
ErrorRecordEnricher(…) Initializes a new instance of the ErrorRecordEnricher class with the option to destructure objects.
DestructureObjects { get; } Gets a value indicating whether objects should be destructured when enriching log events.
Enrich(…) Enriches the log event with error record and invocation info properties if the exception is a WrapperException.
const ERR_PROPERTY_NAME_FULL The property name used for the error record in log events.
const II_PROPERTY_NAME_FULL The property name used for the invocation info in log events.

See Also