droxi icon indicating copy to clipboard operation
droxi copied to clipboard

need log file option

Open severach opened this issue 10 years ago • 2 comments

When things go wrong I'm often asked to prove that and when a file was transferred. lftp solves this with it's robust logging. Here's some log lines from lftp that show when, from, to, and size.

2015-05-27 23:55:12 /home/droxi/INPUT125.txt -> sftp://[email protected]/INPUT125.txt 0-146336 98.2 KiB/s 2015-05-28 00:03:16 sftp://[email protected]/DATA63.txt -> /home/droxi/DATA63.txt 0-701 34.8 KiB/s 2015-05-29 18:23:08 sftp://[email protected]/DATA64.txt -> /home/droxi/DATA64.txt 0-1922 99.0 KiB/s

date: was the file sent in a timely fashion? name/size: which file is it? from: received or sent? to: did it go to the right place? size: was the data complete? speed: is there a network problem? errors: what caused the failure? (lftp does not log errors, but it should)

severach avatar May 30 '15 02:05 severach

Hey there. I'm thinking of implementing this. Is there anything else that should be logged besides file transfers and their associated information?

jangler avatar Jun 17 '15 05:06 jangler

lftp has been sufficient for me so I can only make up ideas you can bounce off others. I can envision at least 3 logging levels.

1: Just transfers and errors that interfere with transfers. 2: More noisy info like connects and disconnects, and normally hidden things like automatic file overwrites. 3: Debugging information including expected errors users could send you to help diagnose program problems.

Try the ssh client with verbose up to -vvv to see how much noise each level generates.

severach avatar Jun 17 '15 06:06 severach