create a logfile for the daemon process