adds a method to override the logging implementation and increases test coverage