log file name moved to variable