'A wrapper for the internal logger which also keeps track of messages and saves them to a string for later.
:param message: The string to log (six.text_type)
:param level: The log level to use (optional)'

def _log(self, message, level=logger.INFO):

    logger.log(message, level)
    self.log += (message + u'\n')
