re-open log file to store next class