Пример #1
0
 def __init__(self, callback, verbose=True):
     threading.Thread.__init__(self)
     self.daemon = True
     self.verbose = verbose
     self._conn = None
     self._queue = le_helpers.create_queue(QUEUE_SIZE)
     self._interrupted_evt_handler = callback
Пример #2
0
    def __init__(self, verbose=True, le_api=LE_API_DEFAULT, le_port=LE_PORT_DEFAULT, le_tls_port=LE_TLS_PORT_DEFAULT):
        threading.Thread.__init__(self)

        # Logentries API server address
        self.le_api = le_api

        # Port number for token logging to Logentries API server
        self.le_port = le_port
        self.le_tls_port = le_tls_port

        self.daemon = True
        self.verbose = verbose
        self._conn = None
        self._queue = le_helpers.create_queue(QUEUE_SIZE)
Пример #3
0
 def __init__(self, verbose=True):
     threading.Thread.__init__(self)
     self.daemon = True
     self.verbose = verbose
     self._conn = None
     self._queue = le_helpers.create_queue(QUEUE_SIZE)
Пример #4
0
 def __init__(self, verbose=True):
     threading.Thread.__init__(self)
     self.daemon = True
     self.verbose = verbose
     self._conn = None
     self._queue = le_helpers.create_queue(QUEUE_SIZE)