How to extend the Congree Bulk Check Service log
Warning
The changes described here will result in a big amount of logs and should only be temporary.
Purpose
You might want to get as much details as possible about outgoing SOAP messages originating from Congree Bulk Check Service. This can be achieved by the following changes.
Configuration
- Open the Web.config of Congree Bulk Check Service. The default path is C:\Program Files (x86)\Congree Language Technologies GmbH\Congree Bulk Check Service\Web.config.
- Find
- Inside of find
- If it exists, remove and all of its content
Insert
<diagnostics> <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="3000" maxSizeOfMessageToLog="65535000"/> </diagnostics>
- Find
- Inside of find
Add
<add name="WcfTraceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\ProgramData\Congree Language Technologies GmbH\Log\Congree Bulk Check_WCF.svclog"> <filter initializeData="All" type="System.Diagnostics.EventTypeFilter"/> </add>
- Inside of find
Add
<source name="System.ServiceModel.MessageLogging" switchValue="Verbose"> <listeners> <add name="WcfTraceListener"/> </listeners> </source>
Result
After the next request to Bulk Check Service you will find Congree Bulk Check_WCF.svclog in the Congree log folder. The default path is C:\ProgramData\Congree Language Technologies GmbH\Log\Congree Bulk Check_WCF.svclog.
Optional extension
If you want to also log WCF internals you can additionaly follow those steps:
- Find
- Inside of find
Add
<source name="System.ServiceModel" switchValue="Verbose"> <listeners> <add name="WcfTraceListener"/> </listeners> </source>
How to read logs
To read the logs, download MS Service Trace Viewer tool and open Congree Bulk Check_WCF.svclog with it.
Manual
https://docs.microsoft.com/en-us/dotnet/framework/wcf/service-trace-viewer-tool-svctraceviewer-exe
Download
You might already have this tool in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
If not, find it here:
https://stackoverflow.com/questions/35332947/svctraceviewer-tool