def __init__(self, host, port=12203, compress=True, path='/gelf',
                 timeout=5, **kwargs):
        """Initialize the GELFHTTPHandler

        :param host: GELF HTTP input host.
        :type host: str

        :param port: GELF HTTP input port.
        :type port: int

        :param compress: If :obj:`True` compress the GELF message before
            sending it to the server (:obj:`True` by default).
        :type compress: bool

        :param path: Path of the HTTP input.
            (see http://docs.graylog.org/en/latest/pages/sending_data.html#gelf-via-http)
        :type path: str

        :param timeout: Amount of seconds that HTTP client should wait before
            it discards the request if the server doesn't respond.
        :type timeout: int
        """

        BaseGELFHandler.__init__(self, compress=compress, **kwargs)

        self.host = host
        self.port = port
        self.path = path
        self.timeout = timeout
        self.headers = {}

        if compress:
            self.headers['Content-Encoding'] = 'gzip,deflate'
def __init__ ( self , host , port = 12203 , compress = True , path = '/gelf' , timeout = 5 , ** kwargs ) : BaseGELFHandler . __init__ ( self , compress = compress , ** kwargs ) self . host = host self . port = port self . path = path self . timeout = timeout self . headers = { } if compress : self . headers [ 'Content-Encoding' ] = 'gzip,deflate'
Initialize the GELFHTTPHandler

        :param host: GELF HTTP input host.
        :type host: str

        :param port: GELF HTTP input port.
        :type port: int

        :param compress: If :obj:`True` compress the GELF message before
            sending it to the server (:obj:`True` by default).
        :type compress: bool

        :param path: Path of the HTTP input.
            (see http://docs.graylog.org/en/latest/pages/sending_data.html#gelf-via-http)
        :type path: str

        :param timeout: Amount of seconds that HTTP client should wait before
            it discards the request if the server doesn't respond.
        :type timeout: int