change log filename to variable