title: Generating celery logs in JSON format in docker with supervisord
body: <p>I want to generate celery logs in json format for integration with greylog. Currently i'm using a command in supervisord.conf to generate celery logs in txt format like this:</p>
  
  <pre><code>[program:celeryworker]
  stdout_logfile=/dev/stdout
  stdout_logfile_maxbytes=0
  stderr_logfile=/dev/stderr
  stderr_logfile_maxbytes=0
  command=celery worker -A d2i_app.celery --loglevel=info --logfile=celery_logs.txt
  </code></pre>
  
  <p>I'm unable to find the changes i need to do in this file to generate logs in JSON format. </p>
  
  <p>If it's not possible to generate logs in JSON format from here, then what changes do i need to make in celery file for which i'm generating logs.</p>