Refactor logging handler to take a redis url