def set_logger(self, logger):
self.__logger = logger<EOL>
Have the Session class send debug logging to your python logging logger.
Set to None stop the logging.

Parameters
----------
logger : `Logger <http://docs.python.org/2/library/logging.html>`_
    The logger to send debug output to.