open close log