serilog-extensions-logging icon indicating copy to clipboard operation
serilog-extensions-logging copied to clipboard

Add more context information to SelfLog if log statement fails

Open penenkel opened this issue 3 years ago • 2 comments
trafficstars

by appending the current stacktrace to the exception and its stacktrace. Fixes #198

penenkel avatar Jan 07 '22 15:01 penenkel

Can we please move this along? My team and I are desperately waiting on this.

chetankumar avatar Apr 13 '22 09:04 chetankumar

Hi @chetankumar! Try out the SelfLog.Enable(m => ...) callback; inside it, you can log the message (m) to wherever you like, and you can also write a (new System.Diagnostics.StackTrace()).ToString() there alongside it.

nblumhardt avatar Apr 14 '22 06:04 nblumhardt

@nblumhardt close?

sungam3r avatar May 10 '23 05:05 sungam3r

👍 I think we're now discussing this and related issues over in serilog/serilog.

nblumhardt avatar May 10 '23 06:05 nblumhardt