[issue40469] TimedRotatingFileHandler rotating on use not time
Vinay Sajip
report at bugs.python.org
Thu Aug 12 16:27:28 EDT 2021
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
> The assumed behaviour of TimedRotatingFileHandler is to rotate log files older than configured. Even when the script is executed multiple times.
Ah, but is it? The purpose of TimedRotatingFileHandler is to rotate files based on time intervals, and is normally assumed to be for long-running processes (where the rotation allows one to focus on logs output during a period of interest). What's the practical, real-world use-case for the example scripts you added?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40469>
_______________________________________
More information about the Python-bugs-list
mailing list