-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I am trying to add DbUpdateExceptionDestructurer via GlobalLogContext. Please let me know if possible:
var seriConfig = new LoggerConfiguration().Enrich.FromGlobalLogContext();
Log.Logger = seriConfig.CreateLogger();
var destructuringOptions = new DestructuringOptionsBuilder()
.WithDefaultDestructurers()
.WithDestructurers(new[] { new DbUpdateExceptionDestructurer() })
.WithIgnoreStackTraceAndTargetSiteExceptionFilter()
.WithDestructuringDepth(5)
.WithRootName("@x");
GlobalLogContext.Push(new ExceptionEnricher(destructuringOptions));
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested