Zum Ende der Metadaten springen
Zum Anfang der Metadaten

Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

Version 1 Aktuelle »

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

  1. 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.
  2. Find <system.serviceModel>
  3. Inside of <system.serviceModel> find <diagnostics>
  4. If it exists, remove <diagnostics> and all of its content
  5. Insert

    <diagnostics> 
        <messageLogging  
             logEntireMessage="true"  
             logMalformedMessages="true" 
             logMessagesAtServiceLevel="true"  
             logMessagesAtTransportLevel="true" 
             maxMessagesToLog="3000" 
             maxSizeOfMessageToLog="65535000"/> 
      </diagnostics> 
  6. Find <system.diagnostics>
  7. Inside of <system.diagnostics> find <sharedListeners>
  8. 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>
  9. Inside of <system.diagnostics> find <sources>
  10. 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:

  1. Find <system.diagnostics>
  2. Inside of <system.diagnostics> find <sources>
  3. 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


  • Keine Stichwörter