def emit(self, record):
        """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
        """
        pickle = self.makePickle(record)
        connection = httplib.HTTPConnection(
            host=self.host,
            port=self.port,
            timeout=self.timeout
        )
        connection.request('POST', self.path, pickle, self.headers)
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 )
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