Logging location of lftp

14,557

Solution 1

I don't know the answer to the first and second question, but for the third question:

set xfer:log-file "/path/to/your/file.log"

Solution 2

When multiple instances of lftp write to the same log file it can be mixed up (as current lftp 4.7.1 does not use file locking for the log file). At best the lines will be interleaved.

The setting xfer:log-file appeared in lftp version 4.2.0.

Share:
14,557
Wei
Author by

Wei

Updated on June 04, 2022

Comments

  • Wei
    Wei almost 2 years

    While using lftp, it will log the file transfer to the ~/.lftp/transfer_log when xfer:log setting is set to "yes".

    What will happen when there are two instances of lftp running at the same time? Will the log file be mixed up?

    Is there a way to change where the log file will be write to?

    Thanks.