title: How to replace celery default logger with TimedRotatingFileHandler
body: <p>I've been battling with this all day. I have read dozens of stackoverflow and other posts. Many of the suggestions do not work and none address directly what I want to do. So I will post this and answer it for the benefit of anybody else struggling.</p>
  
  <p>Imagine your celery worker tasks and your beat scheduler all work fine. Using default construction methods you will be stuck with 2 logfiles defined by, e.g. :</p>
  
  <pre><code>celery worker ..... -f ./logs/celeryworker.log
  celery beat ..... -f ./logs/celerybeat.log
  </code></pre>
  
  <p>These will just grow indefinitely. How can I introduce a rotating log?</p>