How to configure YAML to create fresh log files instead of appending them?
问题 In a python logger implementation given below, each time I run my program, the logs are appended each time to the existing log files. How do I ensure that each time I run my application code, they are written to the fresh log file? Is it happening because I have set the RotatingFileHandler with backup count as 20 with each file size of 10MB? Should I convert it to simple file handler? I am using following yaml based log configuration in my python logger. 1 version: 1 2 3 formatters: 4 simple: