clean logs after a log