Clean logs conditions