这些新的.net Framework类的最大的好处是通过编辑一个配置文件,你可以改变任何跟踪开关(trace switch) 的级别。在应用程序目录中建一个XML文件,该文件的名字与你的程序的名字相同,扩展名为“.config”。
基于1个网页-相关网页
If a problem occurs during run time, turn on the appropriate trace switch.
如果在运行时出现问题,请打开相应的跟踪开关。
You can change the level of a trace switch by putting it in a configuration file.
您可以将追踪参数放在组态档中,以变更参数的层级。
In that case, you would use one trace switch for the data access module and one switch for the rest of the application.
这种情况下,可以将一个跟踪开关用于数据访问模块,而将另一个开关用于应用程序的其余部分。
应用推荐