tpitale / mail_room

Forward mail from gmail IMAP to a callback URL or job worker, simply.
MIT License
195 stars 51 forks source link

Structured logging of message fetching and delivery #76

Closed tpitale closed 5 years ago

tpitale commented 8 years ago

It may be valuable to know that messages are being fetched/processed/delivered to a remote location in a structured log. Still undecided on this. If using que/sidekiq new jobs will be processed; if using logger all messages are already logged. Only in a remote delivery case (callbacks) would it be especially hard to know if new messages were being fetched/delivered without a log if the remote service is not within the users control.

tpitale commented 8 years ago

This also makes me think about other instrumentation like timing and stats into influxdb or something.

With structured logs we could consume the log and send stats as a distinct process. Or ship the right off to log processing tools to be analyzed.

cablett commented 5 years ago

Hi @tpitale ! I started a PR continuing @ZJvandeWeg 's earlier work on structured logging. What do you think?

tpitale commented 5 years ago

Resolved in #88.