Issue 33162: TimedRotatingFileHandler in logging module

Issue33162

Created on 2018-03-28 08:02 by Nikunj jain, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg314569 - (view) Author: Nikunj jain (Nikunj jain) Date: 2018-03-28 08:02
Currently the TimedRotatingFileHandler in Python, when rotates the log file, invents a new file extension by adding the new date in the end of the file name. It would be really good if a prefix option could be provided which instead of adding the new date in end, will add it in the beginning.
msg314856 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2018-04-03 03:33
You can already roll your own, see

https://docs.python.org/3/library/logging.handlers.html#baserotatinghandler
History
Date User Action Args
2022-04-11 14:58:59adminsetgithub: 77343
2018-04-03 03:33:52vinay.sajipsetstatus: open -> closed
resolution: not a bug
messages: + msg314856

stage: resolved

2018-04-02 19:50:02ned.deilysetnosy: + vinay.sajip
2018-04-02 05:54:16nitishchsetnosy: + nitishch
2018-03-28 08:02:50Nikunj jaincreate