.Net Wcf添加服务调试日志

在web.config文件中,将配置添加到configuration节中,重启服务后日志文件将写入到c:\temp\log\log_Traces.svclog 1 2 3 4 5 6 7 8 9 10 11 12 13 <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="Information, ActivityTracing" propagateActivity="true"> <listeners> <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\temp\log\log_Traces.svclog" /> </listeners> </source> </sources> </system.diagnostics>

2023-02-25 · 1 分钟 · SAM

Hello World

1 Console.WriteLine("hellow World"); mklink 命令是将文件或目录建立双向连接, 该变任何一方都会发生变化, 其主要文件链接有三: 符号链接(软件接), 目录连接(软件接), 文本文件链接(硬连接), 可以这样理解, 软连接, 是建立快捷方式, 硬连接, 是进行复制 win + R 打开资源管理器输入: cmd 点击: 确定 在 cmd 里面输入: mklink /? 来查看 mklink 命令和参数的使用 语法: mklink [[/D] | [/H] | [/J]] Link Target 参数: /D 创建符号目录连接,(软连接) /H 文本文件链接(硬连接) /J 创建目录连接(软连接) link 要创建新链接的文件 Target 源文件 ------------------------------------------------------ 参数 /D 和 /J 都是建立目录连接, /H 是建立文件链接 markdown用法: Hugo模板加载顺序: /layouts/section/-baseof.html /themes//layouts/section/-baseof.html /layouts//baseof.html /themes//layouts//baseof.html /layouts/section/baseof.html /themes//layouts/section/baseof.html /layouts/_default/-baseof.html /themes//layouts/_default/-baseof.html /layouts/_default/baseof.html /themes//layouts/_default/baseof....

2023-02-25 · 1 分钟 · SAM