recreate logfile before writing if not exist