This article explains how to enable tracing of the Exchange Synchronization Service communication with Exchange Web Services (EWS).
Exchange trace is logged in the ZyLAB.EDiscovery.Exchange.Standalone.WinService.exe.log log file at DEBUG level, once trace is enabled.
Enable Exchange trace
- Open the ZyLAB.EDiscovery.Exchange.Standalone.WinService.exe.config file in a text editor. You can find it by default in the "C:\Program Files (x86)\ZyLAB\EDiscovery\Synchronization\Exchange\ExchangeService" directory.
- Change logging level to DEBUG by changing the root level value key from INFO to DEBUG. It will look like the example below.
- Enable trace by setting the ExchangeTraceEnabled key within the AppSettings section to "True". The ExchangeTraceEnabled key may not be there, in this case it is safe to add it. It will look like the example below.
- Restart the ZyLAB Exchange Service service. Please note this will stop any currently running synchronization tasks. Setting the logging level to DEBUG does not require a service restart, but enabling Exchange trace does.
Example of DEBUG logging level configuration
<level value="DEBUG" />
<appender-ref ref="RollingLogFileAppender" />
<!--<appender-ref ref="UdpAppender" />-->
Example of Exchange trace enabled
<add key="ExchangeTraceEnabled" value="True" />
WARNING: Once Exchange trace is enabled, all communication between Exchange Web Services (EWS) and ZyLAB Exchange Synchronization Service will be logged, which will generate log files of the same size of the processed items or bigger. It is therefore highly recommended to disable Exchange trace once troubleshooting is completed. To disable Exchange trace, set the logging level back to INFO and ExchangeTraceEnabled to "False".
3.7; 3.7 Service Pack 1