pulb / mailnag

An extensible mail notification daemon
GNU General Public License v2.0
250 stars 32 forks source link

logging issues #227

Open jdchristensen opened 2 years ago

jdchristensen commented 2 years ago

1) mailnag doesn't include the program name in the logs sent to syslog. For example, I see lines like:

Nov 21 12:52:39 hostname INFO (2021-11-21 12:52:39): Checking 1 email account(s).

Would it make sense to change LOG_FORMAT to include "mailnag[pid]: " at the front? Also, the date and time are redundant when sent to syslog.

2) The default log level is DEBUG, which sends unnecessary stuff to the logs. Would WARNING be better? (Or maybe INFO, but then I would prefer that "Checking %s email accounts(s)" be moved to DEBUG level.)