Added an option to specify the log file path