Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log output #9

Open
awdeorio opened this issue Nov 8, 2016 · 2 comments
Open

Log output #9

awdeorio opened this issue Nov 8, 2016 · 2 comments

Comments

@awdeorio
Copy link
Owner

awdeorio commented Nov 8, 2016

Log output to file. Change output file with -o/--output option. Rotate files. Always log when --no-dry-run causes real emails to be sent.

@jgarbers
Copy link

Just found your tool today and it fits my needs perfectly -- thanks! On this issue might it just be easier and more general to provide an option to specify a logging configuration file as readable by logging.config.fileConfig()?

@awdeorio
Copy link
Owner Author

awdeorio commented Jun 1, 2021

Reviewing #118, which requires some simple logging, got me thinking more about this issue.

  • Automatically rotate log files so that each execution of mailmerge goes to a different log file. This could generate a lot of files, so;
  • Should probably log only when --no-dry-run is enabled
  • Python's RotatingFileHandler might do the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants