I have setup logger thanks to help form this forum, and I am using the standard logrotate package to manage the files, but something is not right. When the logfile grows beyond the limit it moves it to logfile.log.1 and creates a new logfile.log but continues to write to logfile.log.1
I feel sure that the problem is that my program runs for ever and so the log file is never closed, so even when it is moved to logfile.log.1 as it is still open it just keeps writing to that file. Is that the problem? If so how do I close and reopen the log file? I can't find anything in hte documentation I have looked at.
I set it up and start it with -
fh = logging.FileHandler('logfileloation')