code: def emit(self, record):
          
          pickle = self.makePickle(record)
          connection = httplib.HTTPConnection(
              host=self.host,
              port=self.port,
              timeout=self.timeout
          )
          connection.request('POST', self.path, pickle, self.headers)
docs: Convert a :class:`logging.LogRecord` to GELF and emit it to Graylog
          via an HTTP POST request
  
          :param record: :class:`logging.LogRecord` to convert into a
              Graylog GELF log and emit to Graylog via HTTP POST.
          :type record: logging.LogRecord