title: How to create separate logs for nohup python that runs as cron job?
body: <p>I have a nohup command that is executed in a Linux server.</p>
  <pre><code>nohup python /home/user/code.py 1&gt;&gt;/home/user/python_log 2&gt;&amp;1
  </code></pre>
  <p>Python run log is logged under <code>python_log</code>.</p>
  <p>Issue is each run generates too much log that the size of the <code>python_log</code> is currently about 650 MB.</p>
  <p>Is there a way to separate the logs based on the date (or even a incrementing number to resolve the file size issue) of when the cron job runs in procedural manner. For example: <code>python_log_17_08_2021</code></p>