Restructure logging in daemon.