Python: How to create log file everyday using logging module? : <p>I'm new to logging module of python. I want to create a new log file everyday while my application is in running condition.</p>

<pre><code>log file name - my_app_20170622.log
log file entries within time - 00:00:01 to 23:59:59
</code></pre>

<p>On next day I want to create a new log file with next day's date -</p>

<pre><code>log file name - my_app_20170623.log
log file entries within time - 00:00:01 to 23:59:59
</code></pre>

<p>I'm using logging module of python. </p>

<p>I'm using like below - </p>

<pre><code>log_level = int(log_level)
logger = logging.getLogger('simple')
logger.setLevel(log_level)
fh = logging.FileHandler(log_file_name)
fh.setLevel(log_level)
formatter = logging.Formatter(log_format)
fh.setFormatter(formatter)
logger.addHandler(fh)
</code></pre>

<p>Is their any configurations in logging module of python to create a log on daily basis?</p>
