(self, record)
Handle an error during logging.

        An error has occurred during logging. Most likely cause -
        connection lost. Close the socket so that we can retry on the
        next event.
Handle an error during logging.
Handle an error during logging .
def handleError(self, record):
        """
        Handle an error during logging.

        An error has occurred during logging. Most likely cause -
        connection lost. Close the socket so that we can retry on the
        next event.
        """
        if self.closeOnError and self.sock:
            self.sock.close()
            self.sock = None        #try to reconnect next time
        else:
            logging.Handler.handleError(self, record)
def handleError ( self , record ) : if self . closeOnError and self . sock : self . sock . close ( ) self . sock = None #try to reconnect next time else : logging . Handler . handleError ( self , record )