Adding inner exception message to SelfLog #415
Replies: 3 comments 2 replies
-
Hi @CarlJohan79! Thanks for bringing this up. Sounds like a good idea. There are only a few spots (four if i counted correctly) in the code where exceptions are logged using SelfLog. A general helper method for this checking if it's an aggregate/nested exception to log more details in this case would be a good improvement. Can you provide a small sample program to help us testing such an implementation? Regards, |
Beta Was this translation helpful? Give feedback.
-
Looks good. Can you send a PR. I'll be happy to review it. |
Beta Was this translation helpful? Give feedback.
-
We have now merged a PR which fixes this issue. Please try it out with the latest dev version on nuget.org. |
Beta Was this translation helpful? Give feedback.
-
Hi, it would be super userful if the the exception message of an inner exception could be added to the self log in the batch writing.
I had a scenario where it took me quite a while to figure out that I was really dealing with a binding problem with System.Runtime.InteropServices.RuntimeInformation rather than an error in the SQL-handling which the SelfLog displayed from the top level exception message.
Beta Was this translation helpful? Give feedback.
All reactions