changed the log output from daemon and also changed the log filename