1. 打开wcf配置:

WCF trace、log

 

2. enable trace , log

WCF trace、log

WCF trace、log

可以改变log路径:

WCF trace、log

3. 用 SvcTraceViewer.exe (直接在c盘下搜索) 查看

WCF trace、log

 

4. 如果想自定义trace:

 

catch(Exception ex)
{
  Trace.Write(ex.ToString());
  isValidate = false;
}

相关文章:

  • 2022-01-26
  • 2021-11-26
  • 2021-12-04
  • 2021-11-29
  • 2021-08-13
  • 2021-08-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2021-11-24
  • 2021-12-14
  • 2021-07-17
  • 2021-11-26
相关资源
相似解决方案