Fix logfile declaration