Never let logfile grow larger than 1mb, also check if logfile was deleted by the user