[issue25785] TimedRotatingFileHandler missing rotations

2016-08-18 Thread Vinay Sajip

Changes by Vinay Sajip :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25785] TimedRotatingFileHandler missing rotations

2016-08-06 Thread Vinay Sajip

Vinay Sajip added the comment:

This is not a bug. For example, if you set up a rotating handler to rollover 
every minute but only log once every two minutes, you won't get any empty log 
files for the minutes where logging didn't happen.

The behaviour of the handler isn't expected to keep track of when the program 
is interrupted and restarted. If you need this, it is best to subclass the 
handler.

--
resolution:  -> not a bug
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25785] TimedRotatingFileHandler missing rotations

2015-12-02 Thread SilentGhost

Changes by SilentGhost :


--
components: +Library (Lib)
nosy: +vinay.sajip
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25785] TimedRotatingFileHandler missing rotations

2015-12-02 Thread Felipe Cruz

New submission from Felipe Cruz:

I'm using TimedRotatingFileHandler to rotate a log file *every* minute.

If I stop my program, in the middle of a minute, and start again, the next 
rotation will happen at (currentTime + 60). The result of this behavior is that 
I'll end up with files "log_01" and "log_03", instead of "log_01", "log_02" and 
"log_03".

I'm using this class with a little modification which sets the next rollover 
time to (currentTime + (self.interval - currentSecond)). In this case, even If 
I stop and start my program in the middle a minute, the next rollover time will 
be the end of the current minute, not 60 seconds later and the result will be 
one file for each minute.

To sum up, what happen is that the same program with the very same 
configuration, produces a different result if stopped for even just one second. 
If the interval was "rotate every 60 seconds" I would be ok, but If I'm 
configuring to rotate every minute I expect one file for each minute if the 
program was running the time the minutes changed.

--
messages: 255757
nosy: felipecruz
priority: normal
severity: normal
status: open
title: TimedRotatingFileHandler missing rotations
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com