如何创建自定义跟踪侦听器 [英] how do create custom trace listeners

查看:103
本文介绍了如何创建自定义跟踪侦听器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





请告诉我如何在c#中创建自定义跟踪侦听器,以便我可以:



1)使用Trace和TraceListener类捕获在我的Web应用程序内部触发的Web服务中发生的事件。



2)显示在页面内捕获的事件webapp。



3)控制事件捕获的机制。



谢谢,

Aneesh

解决方案

对这个过程的完整解释还有很长的篇幅,但是已经有一篇文章在CodePlex上回答了这个问题。 。



编写自定义.NET跟踪侦听器 [ ^

Hi ,

Pls tell me how can I create a custom trace listener in c# so that I can:

1) Capture events happening inside a webservice triggered inside my web app using Trace and TraceListener classes.

2) Display the events captured on a page inside the webapp.

3) mechanism for controlling the event capturing.

Thanks,
Aneesh

解决方案

A complete explanation of the process is far too long to go in to here but there is already an article that answers this exact question on CodePlex.

Writing custom .NET trace listeners[^]


这篇关于如何创建自定义跟踪侦听器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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