Diagnostics - Happi-cat/Untech.SharePoint GitHub Wiki
If there is need to see what's going on inside and see result queries in logs you can use logging.
Debugging
In order to see log messages during debug in VS you can register built-in DebuggerLoggingEndpoint
:
using Untech.SharePoint.Common.Diagnostics;
Logger.Instance.Endpoints[typeof(DebuggerLoggingEndpoint)] = new DebuggerLoggingEndpoint();
Custom logging
If that's not enough you can create own logging endpoint (for example, endpoint for saving logs to file or to event viewer, ULS, email, etc).
In that case you will need to implement interface Untech.SharePoint.Common.Diagnostics.ILoggingEndpoint
.
This interface provides method(s) that will be called during data quering.
After that you will need to register your endpoint.