Add support for passing a logger to the mongo driver.