Sftp-Script log file

Hi,
I would like to handle the each file start and end time of the file transfer using sftp command.

Can you please advise.

use curl with the option --trace-ascii - logfile.txt

example:

curl -o file2dl "http://fileonserver" --trace-ascii - >> logfile.txt