Apr-02-2020, 08:18 AM
(This post was last modified: Apr-02-2020, 08:18 AM by steve_shambles.)
I tried sending the log to file and this works for me as I can
read what info I need from there, or worst case just display the output as a text file.
Thanks for pointing me towards a solution.
import logging
logging.basicConfig(filename="sync-it.log", level=logging.DEBUG)
my_log = logging.getLogger('dirsync')
and then in my dirsync line:
sync(Glo.src_fldr, Glo.dest_fldr, 'sync', logger=my_log, purge=True)
read what info I need from there, or worst case just display the output as a text file.
Thanks for pointing me towards a solution.
import logging
logging.basicConfig(filename="sync-it.log", level=logging.DEBUG)
my_log = logging.getLogger('dirsync')
and then in my dirsync line:
sync(Glo.src_fldr, Glo.dest_fldr, 'sync', logger=my_log, purge=True)