ErrorRecordEnricherExtensions.WithErrorRecord method
Enriches Serilog logs with error record information.
public static LoggerConfiguration WithErrorRecord(
this LoggerEnrichmentConfiguration loggerConfiguration, bool desctructureObjects = false)
| parameter | description |
|---|---|
| loggerConfiguration | The logger enrichment configuration. |
| desctructureObjects | Specifies whether to destructure objects in the error record. |
Return Value
The logger configuration with error record enrichment.
See Also
- class ErrorRecordEnricherExtensions
- namespace Kestrun.Logging.Enrichers.Extensions