added switching to a new log file to the logger