SFTP Logging
In the logging.cfg file, you can configure logging for SFTP transfers.
To configure logging for SFTP transfers
-
Open logging.cfg in a text editor, such as Notepad.
-
Find this line:
-
Delete the # from the front of the line to enable the logger.
-
Leave as TRACE or change to DEBUG for troubleshooting.
#log4cplus.logger.SFTP=TRACE
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: