added initializing the log file