'Initializes the handler with a specific host address and port.
The attribute \'closeOnError\' is set to 1 - which means that if
a socket error occurs, the socket is silently closed and then
reopened on the next logging call.'

def __init__(self, host, port):

    logging.Handler.__init__(self)
    self.host = host
    self.port = port
    self.sock = None
    self.closeOnError = 0
    self.retryTime = None
    self.retryStart = 1.0
    self.retryMax = 30.0
    self.retryFactor = 2.0
    return
