datalust / seq-extensions-logging

Add centralized log collection to ASP.NET Core apps with one line of code.
https://datalust.co/seq
Apache License 2.0
84 stars 12 forks source link

Enrich events with Exception.Data when present #13

Closed nblumhardt closed 7 years ago

nblumhardt commented 7 years ago

Fixes #12. Exception data is added as a structured Exception.Data property. The exception's GetBaseException() is used so that TIE and AggregateException are unwrapped.

throw new IndexOutOfRangeException() { Data = { ["Index"] = 0 } };

->

image

CC @cilerler

cilerler commented 7 years ago

Can't thank you enough for this one Nicholas!!! 🤗 🍺 🍟 Is there a way for me to get this one through Nuget to test it?

nblumhardt commented 7 years ago

This is now published - https://www.nuget.org/packages/Seq.Extensions.Logging/2.1.2-dev-00031 - thanks for checking it out!

cilerler commented 7 years ago

Working like a charm!!! 😀 🤣🤗👌 Thank you!!!

image