MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/logging/handlers.py:556–579  ·  view source on GitHub ↗

Initializes the handler with a specific host address and port. When the attribute *closeOnError* is set to True - if a socket error occurs, the socket is silently closed and then reopened on the next logging call.

(self, host, port)

Source from the content-addressed store, hash-verified

554 """
555
556 def __init__(self, host, port):
557 """
558 Initializes the handler with a specific host address and port.
559
560 When the attribute *closeOnError* is set to True - if a socket error
561 occurs, the socket is silently closed and then reopened on the next
562 logging call.
563 """
564 logging.Handler.__init__(self)
565 self.host = host
566 self.port = port
567 if port is None:
568 self.address = host
569 else:
570 self.address = (host, port)
571 self.sock = None
572 self.closeOnError = False
573 self.retryTime = None
574 #
575 # Exponential backoff parameters.
576 #
577 self.retryStart = 1.0
578 self.retryMax = 30.0
579 self.retryFactor = 2.0
580
581 def makeSocket(self, timeout=1):
582 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected