Add LogFacade and improve error logging