init logging in daemon mode