Add a mechanism for client code to set a logger