Set up this handler
as follows:
handler = logging.handlers.TimedRotatingFileHandler(path, when='D', interval=7, backupCount=4)
As a result, I have a path
file, which every 7 days writes logs to a file with the same name, but with a date at the end. Great, that's the way it should be.
The only thing I can not understand is how to set it up so that each time the files with the date at the end are placed in a separate folder from the path
file.