I have created a log with timedrotatingfilehandler (). And my scenario is it will log 30 minutes once. but every 30 mins while logging , the log file gets overwritten instead of appending to old logged ones.
logHandler = handlers.TimedRotatingFileHandler(log_file, when='D', interval=1, backupCount=1)
Is my syntax is right?