TimedRotatingFileHandler : stop rolling over at midnight if script is running

Viewed 17

I understand TimedRotatingFileHandler rollover logs when=midnight is used in when parameter. However, how to avoid this rollover if my script is running at midnight as it do not save the logs after 11:59:59? and what happens if I don't give when parameter?

TimedRotatingFileHandler(log_path+log_config['app_name']+'.log', when='midnight',interval=1)
0 Answers
Related