Clean logs in file