在asp.net中捕获日志或文件中的错误 [英] catch error in log or file in asp.net

查看:76
本文介绍了在asp.net中捕获日志或文件中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如何在asp.net framework 3.5中使用跟踪来登录服务器

如何调试代码在服务器上通过浏览器



或如何在代码中生成日志文件以使用try和catch

解决方案

<检查错误blockquote>尝试 log4net教程 [ ^ ]。


1)

u可以使用事件查看来自管理工具和chekc的asp.net(Source)事件。



3)你也可以写下你自己的代码来发送电子邮件事件/错误或写一些txt文件并检查一下。或者您可以使用response.write打印异常消息。


Hi
how to use tracing in asp.net framework 3.5 for log at server or
how to debug code at server through browser

or how to make log file in code to check error using try and catch

解决方案

Try log4net Tutorial[^].


1)
u can use event viewer from administrative tools and chekc the asp.net(Source) events.

3) you can also write down your own code to email event / error or write to some txt file and check things. or you can simply print exception message by using response.write.


这篇关于在asp.net中捕获日志或文件中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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