且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以编程方式/动态方式添加WCF服务跟踪日志记录

更新时间:2023-11-30 15:38:52

您好Candreoutrade,

Hi Candreoutrade,

据这种情况,据我所知,当我们创建一个自定义监听器类时,

According to this case, as far as I know, when we create a  custom listener class which

.如果您想要所有跟踪输出的文本记录,

is mentioned in the config.if you want a text record of all trace output,

创建一个TextWriterTraceListener侦听器,该侦听器将所有输出写入一个新的文本文件

create a TextWriterTraceListener listener, which writes all output to a new text file

启用后.

有关更多信息,请参阅以下文章:

For more information, please refer to the following articles:

1.如何:创建和初始化跟踪侦听器

2.如何启用/通过代码禁用WCF跟踪

***的问候,

Grady