Open log file before loading configuration file