我们在哪里存储c#中Catch块发生的异常? [英] Where do we stored exceptions occured at Catch block in c#?

查看:62
本文介绍了我们在哪里存储c#中Catch块发生的异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


有人可以告诉我在哪里存储在Catch块中发生的异常吗??
我听说我们可以将异常存储在"log4net"中.但是,在我们完全将异常存储在C#中的地方,有人可以简单地告诉我吗?


谢谢
Ganesh

Hi,
Can anybody tell me where do we stored Exceptions occured at Catch block...?
I heared that we can Store exceptions in ''log4net''.But where we store exceptions exactly in C#,please can anybody tell me briefly?..



Thanks
Ganesh

推荐答案



log4net可用于记录任何内容,包括.net应用程序中的异常;您可以在物理驱动器中创建日志文件.请在下面找到详细信息.

log4net教程 [如何使用log4net [
Hi,

log4net can be used to log anything including exceptions in your .net application; You can create log files in your physical drive. Please find the details below.

log4net Tutorial[^]

How to use log4net[^]

Regards
Sebastian


这篇关于我们在哪里存储c#中Catch块发生的异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆