this blog demonstrates how to log the exception message along with n depth of innerexception in C#. the better logging always helps to developer to find out the optimal solution for problem.
Here is a recursive method to log exception along with inner exception :
C# :
Here is a recursive method to log exception along with inner exception :
C# :
C# :
above readException method reads the exception as well as aggregateException message too.
No comments:
Post a Comment