creating logfile before