Choose log file from parameters;