Allow the consumer to pass in a debug log function