proper logfile rotation