You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
The text was updated successfully, but these errors were encountered:
I am trying to add DbUpdateExceptionDestructurer via GlobalLogContext. Please let me know if possible:
The text was updated successfully, but these errors were encountered: