'create a log entry for an attempt to send the given message and
record the given result and (optionally) a log message'

def log(self, message, result_code, log_message=u''):

    return self.create(message_data=message.message_data, message_id=get_message_id(message.email), when_added=message.when_added, priority=message.priority, result=result_code, log_message=log_message)
