I love Celery, and we''re
using it at one of my customers. One thing
we wanted to have is centralized logging, since you can have multiple workers
on multiple machines. We looked at several solutions and the winner came out to
be logstash + kibana
(AKA ELK stack).
Here''s some code to log to logstash with Celery current task information (if
available) and also to a structured log (every line is a JSON object) for backup
in case of network issues.
where is the code?
ReplyDelete