How to make a .svc file write to asp.net Trace.axd

我怕爱的太早我们不能终老 提交于 2019-12-10 20:21:53

问题


I am trying to figure out how to make a 3.5 WCF service thats hosted under IIS write to the asp.net trace?


回答1:


My guess is that you would add this to the web.config file:

<system.diagnostics>
   <sources>
      <source name="System.ServiceModel" switchValue="Information, ActivityTracing">
          <listeners>
              <add name="AspTraceListener"
                   type="System.Web.WebPageTraceListener" />
          </listeners>
      </source>
   </sources>
</system.diagnostics>


来源:https://stackoverflow.com/questions/4341618/how-to-make-a-svc-file-write-to-asp-net-trace-axd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!