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
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
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