title: how do I save flask app logs separately per day instead of one giant file
body: <p>I have a python flask app running on EC2.
  To enable UI interface to be functional, I run this on ec2 after logging in as the correct user:</p>
  <pre><code>uwsgi --socket 0.0.0.0:8000 --protocol=http -w wsgi:application  -z 120 --http-timeout 120 --enable-threads -H /home/test/env --daemonize /home/test/test.log
  </code></pre>
  <p>and the UI becomes operational. When i click the download button certain computations take place before the csv becomes ready to download. I don't have a uwsgi.ini file or any kind of nginx.</p>
  <p>After a point the test.log becomes a very large file;
  How do I write log files so that each days log gets written to a separate file?
  or what is the best way to prevent one large log file from getting generated and instead have something that is more manageable?</p>