How to turn on WCF tracing?

后端 未结 4 1064
感动是毒
感动是毒 2020-11-21 23:36

Update:

I have been trying to turn on WCF tracing, but still no success... Below is my lastest update.

Do I need a permission to write to th

4条回答
  •  有刺的猬
    2020-11-22 00:26

    Go to your Microsoft SDKs directory. A path like this:

    C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools
    

    Open the WCF Configuration Editor (Microsoft Service Configuration Editor) from that directory:

    SvcConfigEditor.exe
    

    (another option to open this tool is by navigating in Visual Studio 2017 to "Tools" > "WCF Service Configuration Editor")

    Open your .config file or create a new one using the editor and navigate to Diagnostics.

    There you can click the "Enable MessageLogging".

    enable messagelogging

    More info: https://msdn.microsoft.com/en-us/library/ms732009(v=vs.110).aspx

    With the trace viewer from the same directory you can open the trace log files:

    SvcTraceViewer.exe
    

    You can also enable tracing using WMI. More info: https://msdn.microsoft.com/en-us/library/ms730064(v=vs.110).aspx

提交回复
热议问题