EwsLog Property |
Namespace: MailBee.EwsMail
Ews class has its own logging which you can configure using this property. It works all the same for all MailBee network components, see Imap.Log for examples.
However, as Ews class is just a wrapper for EWS Managed API library, most of activities take place in its code. To get more comprehensive logging (such as for debugging), you can also enable tracing of all network requests. This will let you see what's EWS Managed API layer is doing under the hood.
<system.diagnostics> <sources> <source name="System.Net" tracemode="protocolonly" maxdatasize="4096"> <listeners> <add name="System.Net"/> </listeners> </source> </sources> <switches> <add name="System.Net" value="Verbose"/> <add name="System.Net.Cache" value="Verbose"/> <add name="System.Net.Http" value="Verbose"/> <add name="System.Net.Sockets" value="Verbose"/> <add name="System.Net.WebSockets" value="Verbose"/> </switches> <sharedListeners> <add name="System.Net" type="System.Diagnostics.TextWriterTraceListener" initializeData="network.log" /> </sharedListeners> <trace autoflush="true"/> </system.diagnostics>