logging exception the code below allows to save the content of an exception in a text file. Here I\'m getting only the decription of the error.
Just log ToString(). Not only will it give you the stack trace, but it'll also include the inner exceptions.
ToString()