cjnaz / rclonesync-V2

A Bidirectional Cloud Sync Utility using rclone
MIT License
355 stars 39 forks source link

logging? #40

Closed tulakalbeyo closed 4 years ago

tulakalbeyo commented 4 years ago

awesome python script!! but... i have to jump through too many hoops to get rclonesync to output a .log file to the desktop. any chance we can get a simple, internal --logs option?

thanks!

cjnaz commented 4 years ago

Hello, and thanks.
What's the problem with using output redirection? py rclonesync.py ... >> "C:\Users\<your username>\Desktop\logfile.log" 2>&1 ? The python logger writes to stderr, and the 2>&1 redirects the stderr stream to the file. This works the same on Windows 10 and Linux.

tulakalbeyo commented 4 years ago

oh, this is way easier than how i was doing it!! thanks a lot!! :grin: hopefully the internal --logs option will still be implemented, as it will just be neater to write shell scripts with it. again, thanks! :relaxed:

cjnaz commented 4 years ago

I'll leave this open for others to comment

cjnaz commented 4 years ago

No discussion on this one, so I'll close it for now.