SFTP Logging

In the logging.cfg file, you can configure logging for SFTP transfers.

To configure logging for SFTP transfers

  1. Open logging.cfg in a text editor, such as Notepad.

  2. Find this line:

  3. #log4cplus.logger.SFTP=TRACE

  4. Delete the # from the front of the line to enable the logger.

  5. Leave as TRACE or change to DEBUG for troubleshooting.

If you change it to DEBUG, be sure to change it back to TRACE and/or add the # to the front to comment out (disable) that log to avoid creating unnecessarily large log files.  

Note that there are differences in how the logs are displayed depending on whether you are using SFTP.DLL or SFTP2.DLL.

When using the SFTP2.dll, the logs at the KEX section are in ASCII format:

When using the legacy SFTP.dll, the KEX section is in HEX format: