Message234552
If RotatingFileHandler is initialized with backupCount 0, the file does not rotate but grows indefinitely. This is not self-evident from the documentation.
Suggestion: either rotate (discard) the log if backupCount==0 or mention the current operation the documentation. The former leaves the user with only one log message at the worst case.
In the latter case, the documentation can be modified to explicitly mention what the result will be if backupCount is left to its default value of 0, i.e. that the RotatingFileHandler will grow the file indefinitely regardless of the value of maxBytes value. The default value for the backupCount could also be modified, as the default value does nothing.
Tested with Windows-Python2.7, Linux-Python 3.3.2+ (Ubuntu-14.04). Can be reproduced with a simple logging example with backupCount == 0 and maxBytes > 0 |
|
Date |
User |
Action |
Args |
2015-01-23 10:37:03 | Juha.Lemmetti | set | recipients:
+ Juha.Lemmetti, vinay.sajip |
2015-01-23 10:37:03 | Juha.Lemmetti | set | messageid: <1422009423.63.0.642413518943.issue23305@psf.upfronthosting.co.za> |
2015-01-23 10:37:03 | Juha.Lemmetti | link | issue23305 messages |
2015-01-23 10:37:02 | Juha.Lemmetti | create | |
|