Add --log_file flag to allow logfile to be specified.