Apply patch from github.com/X8/ruby to pass in a logger object