在配置追踪功能时,可使用如下配置代码,定义新的 IIS 追踪监听器并捕获所有追踪信息:
<system.diagnostics> <sharedListeners> <add name=”IisTraceListener” type=”System.Web.IisTraceListener, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” /> </sharedListeners> <switches> <add name=”DefaultSwitch” value=”All” /> </switches> <sources> <source name=”tsTracing” switchName=”DefaultSwitch”> <listeners> <add name=”IisTraceListener” type=”System.Web.IisTraceListener, System. Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” /> 12345678910111213

