redirected the output into log files, makes it easier to run the daemon in the background and still keep track of any events