[issue9556] Specifying the time a TimedRotatingFileHandler rotates

Ronald Oussoren report at bugs.python.org
Tue Aug 10 13:57:37 CEST 2010


New submission from Ronald Oussoren <ronaldoussoren at mac.com>:

The logging module contains a TimedRotatingFileHandler that automaticly rotates the logfile after a specified interval.

This class misses an important feature: it is not possible to specify at what time the file should be rotated, unless that time is midnight.

My usecase: one of our customers works night shifts which means that rotating logfiles at midnight means that files get rotated halfway through a shift instead of at the end of one.

We'd like to be able to specify that logfiles get rotated at a specific time (such as 7:00AM).

----------
components: Library (Lib)
messages: 113527
nosy: ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Specifying the time a TimedRotatingFileHandler rotates
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9556>
_______________________________________


More information about the Python-bugs-list mailing list