我已将WCF配置为记录到跟踪文件,并且我能够在Microsoft Service Trace Viewer中查看跟踪文件。问题是发送/接收的消息和写入文件的日志记录之间有大约30分钟的延迟。
任何人都知道为什么会这样吗?
下面我粘贴了btsntsvc64.exe.config
的相关内容> <system.diagnostics>
> <sources>
> <source name="System.ServiceModel" switchValue="Verbose">
> <listeners>
> <add name="xml" />
> </listeners>
> </source>
> <source name="System.ServiceModel.MessageLogging" switchValue="Verbose, ActivityTracing">
> <listeners>
> <add name="xml" />
> </listeners>
> </source>
> <source name="System.Runtime.Serialization" switchValue="Verbose">
> <listeners>
> <add name="xml" />
> </listeners>
> </source>
> </sources>
> <sharedListeners>
> <add name="xml" type="System.Diagnostics.XmlWriterTraceListener" traceOutputOptions="LogicalOperationStack"
> initializeData="C:\logs\BizTalk\WCFTrace.svclog" />
> </sharedListeners>
> <trace autoflush="true" /> </system.diagnostics> <system.serviceModel>
> <diagnostics>
> <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true"
> logMessagesAtTransportLevel="false" />
> </diagnostics> </system.serviceModel>