format logfile name