log clean script