logging exception in c#

前端 未结 6 1336
轮回少年
轮回少年 2020-12-29 04:52

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.

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 05:57

    Just log ToString(). Not only will it give you the stack trace, but it'll also include the inner exceptions.

提交回复
热议问题