コード例 #1
0
 def _factor_client(self, use_logging):
     return pylogbeat.PyLogBeatClient(host=None,
                                      port=None,
                                      timeout=None,
                                      ssl_enable=False,
                                      ssl_verify=True,
                                      keyfile=None,
                                      certfile=None,
                                      ca_certs=None,
                                      use_logging=use_logging)
コード例 #2
0
ファイル: integration_test.py プロジェクト: eht16/pylogbeat
 def _factor_client(self):
     return pylogbeat.PyLogBeatClient(host=SOCKET_HOST,
                                      port=SOCKET_PORT,
                                      timeout=SOCKET_TIMEOUT,
                                      ssl_enable=False,
                                      ssl_verify=True,
                                      keyfile=None,
                                      certfile=None,
                                      ca_certs=None,
                                      use_logging=True)
コード例 #3
0
 def _factor_client(self, ssl_enable, ssl_verify=True, timeout=None):
     return pylogbeat.PyLogBeatClient(
         host=SOCKET_HOST,
         port=SOCKET_PORT,
         timeout=timeout,
         ssl_enable=ssl_enable,
         ssl_verify=ssl_verify,
         keyfile=SSL_KEYFILE,
         certfile=SSL_CERTFILE,
         ca_certs=SSL_CACERTS,
         use_logging=True)
コード例 #4
0
 def send(self, events, use_logging=False):
     client = pylogbeat.PyLogBeatClient(use_logging=use_logging,
                                        **self._client_arguments)
     with client:
         for events_subset in ichunked(events, self._batch_size):
             client.send(events_subset)