joeyates / imap-backup

Backup and Migrate IMAP Email Accounts
MIT License
1.33k stars 74 forks source link

Feature request: Logging levels #130

Closed jacobrharris closed 1 year ago

jacobrharris commented 1 year ago

I need some amount of logging, but "debug": true is a bit of a firehose and seems to be the only option. Any plans for supporting more logging levels or some other way of tuning how much gets printed?

joeyates commented 1 year ago

Hi @jacobrharris

Switching to comand-line switch controlled verbosity levels is second on the road map - after the addition of the mirror command! Watch this space :)

joeyates commented 1 year ago

@jacobrharris

I've just release version 7.0.2 with comand-line-controllable logging levels.

The default logging level is now 'info' instead of 'error', so you get some output when running backups. The --verbose flag turns on debugging output, while the --quiet flag stops all output.