<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.diagnostics>
    <trace autoflush="true" />
    <sources>
      <source name="System.ServiceModel"
              switchValue="Information, ActivityTracing"
              propagateActivity="true">
        <listeners>
          <add name="sdt"
              type="System.Diagnostics.XmlWriterTraceListener"
              initializeData= "D:\Colleague\BaiYongsheng\Server\Host\bin\Debug\SdrConfigExample.e2e" />
        </listeners>
      </source>
    </sources>
  </system.diagnostics>
</configuration>

 建议把SdrConfigExample.e2e修改为SdrConfigExample.svclog

 

initializeData是输出文件的路径

开始,运行 输入svctraceviewer.exe,找到

Service Trace Viewer Tool (SvcTraceViewer.exe)


把问题的Host打开,然后运行起来,重现问题。会在initializeData生成一个日志文件。
用上面的exe打开生成的文件
查看里面的红色字体

Service Trace Viewer Tool (SvcTraceViewer.exe)




 

相关文章:

  • 2022-12-23
  • 2022-02-12
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-10-02
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2021-11-26
  • 2022-01-08
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案