Added GetLogger() method to allow user to pass in a logger from another program.