开发者

How do I get Debug/Trace.Writeline output from a WCF Service

开发者 https://www.devze.com 2023-01-20 05:04 出处:网络
I have a WCF Service hosted in IIS. I am g开发者_高级运维etting the WCF Tracing , but I can\'t find where my trace.writeline entries are going. My trace listener only logs the WCF Tracing.

I have a WCF Service hosted in IIS. I am g开发者_高级运维etting the WCF Tracing , but I can't find where my trace.writeline entries are going. My trace listener only logs the WCF Tracing. Is there a specific Source I need to add to get this included.


  • Start the Event Viewer
  • Open the Applications and Services logs folder
  • -> Microsoft -> Windows -> Application Server-Applications
  • Right click the Application Server-Applications folder and choose View -> Show Analytic and Debug Logs
  • Expand the Application Server-Applications folder and right click the Debug log. Choose Enable Log.

If you know you run a WCF/WF service compiled in debug mode, the Debug.WriteLine() should be logged to the log.

Remember to disable the log when you're done with it.

--larsw

0

精彩评论

暂无评论...
验证码 换一张
取 消