time close and open new log file