code: def stage_wbem_connection(self, wbem_connection):
          
          self._conn_id = wbem_connection.conn_id
  
          if self.enabled:
              if self.api_detail_level is not None:
                  logger = self.apilogger
                  detail_level = self.api_detail_level
                  max_len = self.api_maxlen
              elif self.http_detail_level is not None:
                  logger = self.httplogger
                  detail_level = self.http_detail_level
                  max_len = self.http_maxlen
              else:
                  return
  
              if logger.isEnabledFor(logging.DEBUG):
                  conn_data = str(wbem_connection) if detail_level == 'summary' \
                      else repr(wbem_connection)
  
                  if max_len and (len(conn_data) > max_len):
                      conn_data = conn_data[:max_len] + '...'
                  logger.debug('Connection:%s %s', self._conn_id, conn_data)
docs: Log connection information. This includes the connection id (conn_id)
          that is output with the log entry. This entry is logged if either
          http or api loggers are enable. It honors both the logger and
          detail level of either api logger if defined or http logger if defined.
          If the api logger does not exist, the output shows this as an http
          loggger output since we do not want to create an api logger for this
          specific output