Rclone is a command-line tool for managing and syncing files to and from various cloud storage providers. It has built-in logging capabilities that allow you to generate log files to track its operations and diagnose issues. Here’s how you can generate a log file when using rclone:
To generate a log file, simply run your rclone command as you normally would, but append the --log-file
option followed by the path to the log file you want to create. For example:
rclone sync /path/to/source remote:destination –log-file=/path/to/rclone.log
–log-level LEVEL
This sets the log level for rclone. The default log level is NOTICE
.
DEBUG
is equivalent to-vv
. It outputs lots of debug info – useful for bug reports and really finding out what rclone is doing.INFO
is equivalent to-v
. It outputs information about each transfer and prints stats once a minute by default.NOTICE
is the default log level if no logging flags are supplied. It outputs very little when things are working normally. It outputs warnings and significant events.ERROR
is equivalent to-q
. It only outputs error messages.
Reference: https://rclone.org/docs/#log-level-level