I am trying to implement the python logging handler TimedRotatingFileHandler.
When it rolls over to midnight it appends the current day in the form
"How can i change how it alters the filename?"
Since it isn't documented, I elected to read the source. This is what I concluded from reading the source of logging/handlers.py
handler = logging.handlers.TimedRotatingFileHandler("C:\\isis_ops\\logs\\Rotate_Test",'midnight',1)
handler.suffix = "%Y-%m-%d" # or anything else that strftime will allow
root_logger.addHandler(handler)
The suffix is the formatting string.