- 以下設定的initializeData目錄需有網站權限。
- switch這邊設定為All,代表會輸出所有診斷的訊息,可以依據需要來調整。
參考資料:<system.diagnostics><sources><source name="System.ServiceModel.MessageLogging" switchValue="All"><listeners><add type="System.Diagnostics.DefaultTraceListener" name="Default"><filter type="" /></add><add initializeData="D:\WebSites\TEMP\site_messages.svclog"type="System.Diagnostics.XmlWriterTraceListener"name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp"><filter type="" /></add></listeners></source><source name="System.ServiceModel" switchValue="All"propagateActivity="true"><listeners><add type="System.Diagnostics.DefaultTraceListener" name="Default"><filter type="" /></add><add initializeData="D:\WebSites\TEMP\site_tracelog.svclog"type="System.Diagnostics.XmlWriterTraceListener"name="ServiceModelTraceListener" traceOutputOptions="Timestamp"><filter type="" /></add></listeners></source></sources><system.diagnostics><system.serviceModel><diagnostics><messageLogging logMalformedMessages="true"logMessagesAtTransportLevel="true"logEntireMessage="true"logMessagesAtServiceLevel="true"maxMessagesToLog="3000"/></diagnostics></system.serviceModel>
沒有留言:
張貼留言