I am trying to implement the python logging handler TimedRotatingFileHandler.
TimedRotatingFileHandler
When it rolls over to midnight it appends the current day in the form
You can do this by changing the log suffix as suggested above but you will also need to change the extMatch variable to match the suffix for it to find rotated files:
handler.suffix = "%Y%m%d" handler.extMatch = re.compile(r"^\d{8}$")