def initialize_logstash(logger=None, loglevel=logging.DEBUG, **kwargs):
    handler = logstash.TCPLogstashHandler('localhost', 5959, tags=['worker'])
handler.setLevel(loglevel)
logger.addHandler(handler)
return logger
How to send celery all logs to a custom handler . in my case python-logstash handler