Class AppenderSkeleton.NoOpErrorHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(java.lang.String message)
      This method is normally used to just print the error message passed as a parameter.
      void error​(java.lang.String message, java.lang.Exception e, int errorCode)
      Equivalent to the ErrorHandler.error(String, Exception, int, LoggingEvent) with the the event parameter set to null.
      void error​(java.lang.String message, java.lang.Exception e, int errorCode, LoggingEvent event)
      This method is invoked to handle the error.
      void setAppender​(Appender appender)
      Set the appender for which errors are handled.
      void setBackupAppender​(Appender appender)
      Set the appender to fallback upon in case of failure.
      void setLogger​(Logger logger)
      Add a reference to a logger to which the failing appender might be attached to.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoOpErrorHandler

        public NoOpErrorHandler()
    • Method Detail

      • setLogger

        public void setLogger​(Logger logger)
        Description copied from interface: ErrorHandler
        Add a reference to a logger to which the failing appender might be attached to. The failing appender will be searched and replaced only in the loggers you add through this method.
        Specified by:
        setLogger in interface ErrorHandler
        Parameters:
        logger - One of the loggers that will be searched for the failing appender in view of replacement.
      • error

        public void error​(java.lang.String message,
                          java.lang.Exception e,
                          int errorCode)
        Description copied from interface: ErrorHandler
        Equivalent to the ErrorHandler.error(String, Exception, int, LoggingEvent) with the the event parameter set to null.
        Specified by:
        error in interface ErrorHandler
        Parameters:
        message - The message associated with the error.
        e - The Exception that was thrown when the error occurred.
        errorCode - The error code associated with the error.
      • error

        public void error​(java.lang.String message)
        Description copied from interface: ErrorHandler
        This method is normally used to just print the error message passed as a parameter.
        Specified by:
        error in interface ErrorHandler
        Parameters:
        message - The message associated with the error.
      • error

        public void error​(java.lang.String message,
                          java.lang.Exception e,
                          int errorCode,
                          LoggingEvent event)
        Description copied from interface: ErrorHandler
        This method is invoked to handle the error.
        Specified by:
        error in interface ErrorHandler
        Parameters:
        message - The message associated with the error.
        e - The Exception that was thrown when the error occurred.
        errorCode - The error code associated with the error.
        event - The logging event that the failing appender is asked to log.
      • setAppender

        public void setAppender​(Appender appender)
        Description copied from interface: ErrorHandler
        Set the appender for which errors are handled. This method is usually called when the error handler is configured.
        Specified by:
        setAppender in interface ErrorHandler
        Parameters:
        appender - The appender
      • setBackupAppender

        public void setBackupAppender​(Appender appender)
        Description copied from interface: ErrorHandler
        Set the appender to fallback upon in case of failure.
        Specified by:
        setBackupAppender in interface ErrorHandler
        Parameters:
        appender - The backup appender