Add support for logging output of daemon