[issue43344] RotatingFileHandler breaks file type associations

2021-03-02 Thread Kevin Hollingshead
Kevin Hollingshead added the comment: Thanks Vinay, I was able to do this with: def namer(name): return name.replace(".log", "") + ".log" Then when initializing the logger: handler.namer = namer My full initializer script: import os import loggin

[issue43344] RotatingFileHandler breaks file type associations

2021-03-02 Thread Kevin Hollingshead
Kevin Hollingshead added the comment: Sure. Thanks for your help. On Tue, Mar 2, 2021, 1:08 PM Vinay Sajip wrote: > > Vinay Sajip added the comment: > > I'll add to the cookbook recipe with this real-world example, when I ge

[issue43344] RotatingFileHandler breaks file type associations

2021-02-27 Thread Kevin Hollingshead
New submission from Kevin Hollingshead : The filenames generated by logging.RotatingFileHandler breaks the ability to associate a program (e.g. notepad++, sublime text, etc.) with the log files using Windows or OSX file associations because the extension is overridden by the added suffix