To enable the session and debugging logging, set 
https://winscp.net/eng/docs/library_session
        Session.SessionLogPath and Session.DebugLogPath:
https://winscp.net/eng/docs/library_session