[issue33506] [logging] template for filename timestamps

2018-05-15 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33506] [logging] template for filename timestamps

2018-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > Are you planning to remove the predefined filename templates No. They work fine as is for most people, from what I can tell. > it still has the limitation that when a logging file is active for writing > log events, that file always

[issue33506] [logging] template for filename timestamps

2018-05-14 Thread Steve R. Hastings
Steve R. Hastings added the comment: I just reviewed the Python 3.6 logging code. Unless I am mistaken, it still has the limitation that when a logging file is active for writing log events, that file always has the same filename (self.baseFilename). Did I

[issue33506] [logging] template for filename timestamps

2018-05-14 Thread Steve R. Hastings
Steve R. Hastings added the comment: > What about [ BaseRotatingHandler.namer ] which allows you to specify your own > naming scheme? I confess that I overlooked that; it was added later than the version of Python in which I wrote my original code. The current

[issue33506] [logging] template for filename timestamps

2018-05-14 Thread Vinay Sajip
Vinay Sajip added the comment: > The logging library has a small set of predefined filename templates and no > way is provided to override them. What about https://docs.python.org/3/library/logging.handlers.html#logging.handlers.BaseRotatingHandler.namer which

[issue33506] [logging] template for filename timestamps

2018-05-14 Thread Steve R. Hastings
New submission from Steve R. Hastings : When a logged file has a timed rotation, it is renamed with an archival filename that includes a timestamp. The logging library has a small set of predefined filename templates and no way is provided to override them.