adding in ability to set a logging method

the logging method will send out the request and the result that is
generated