daemon: add logging