[issue9556] Specifying the time a TimedRotatingFileHandler rotates

Vinay Sajip report at bugs.python.org
Sun Aug 22 20:47:37 CEST 2010


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

One way of implementing this is to use an additional optional "atTime" parameter which is a datetime.time instance, defaulting to None; a specified value would only be used if a 'when' value of 'D' or 'MIDNIGHT' were specified. In that case, computeRollover would be called with the specified time instead of the current time.

Would that meet your requirements?

----------
assignee:  -> vinay.sajip
status: open -> pending

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


More information about the Python-bugs-list mailing list