> On 22 Jun 2022, at 11:06, Lars Liedtke <l...@solute.de> wrote:
>
> Could be unrelated and only a part of a solution, but if you are on a unixoid
> system, you could use logrotate, instead of TimedRotatingFileHandler.
> logfrotate ensures that the logging service does not realize, its logs have
> been rotated. So it can log as if nothing has happened.
The process that is writing the file must be told that rotation has happened
for it to work.
Other wise all the logs keep being write to the original file via the FD that
the process has.
logrotate's config include how to tell the process the log file needs reopening.
Barry
--
https://mail.python.org/mailman/listinfo/python-list