这些新的.net Framework类的最大的好处是通过编辑一个配置文件,你可以改变任何跟踪开关(trace switch) 的级别。在应用程序目录中建一个XML文件,该文件的名字与你的程序的名字相同,扩展名为“.config”。
基于1个网页-相关网页
If a problem occurs during run time, turn on the appropriate trace switch.
如果在运行时出现问题,请打开相应的跟踪开关。
In that case, you would use one trace switch for the data access module and one switch for the rest of the application.
这种情况下,可以将一个跟踪开关用于数据访问模块,而将另一个开关用于应用程序的其余部分。
Trace and debug Settings specify trace listeners that collect, store, and route messages, and the level where a trace switch is set.
跟踪和调试设置指定对消息进行收集、存储和路由的跟踪侦听器,并且还指定设置跟踪开关的级别。
应用推荐