Class Log4JFactory.Log4JLog

    • Method Detail

      • trace

        public void trace​(Object message)
        Log a message to the Log4j Logger with TRACE priority. Currently logs to DEBUG level in Log4J.
        Specified by:
        trace in class LogEngine
        Parameters:
        message - log this message
      • trace

        public void trace​(Object message,
                          Throwable t)
        Log an error to the Log4j Logger with TRACE priority. Currently logs to DEBUG level in Log4J.
        Specified by:
        trace in class LogEngine
        Parameters:
        message - log this message
        t - log this cause
      • debug

        public void debug​(Object message)
        Log a message to the Log4j Logger with DEBUG priority.
        Specified by:
        debug in class LogEngine
        Parameters:
        message - log this message
      • debug

        public void debug​(Object message,
                          Throwable t)
        Log an error to the Log4j Logger with DEBUG priority.
        Specified by:
        debug in class LogEngine
        Parameters:
        message - log this message
        t - log this cause
      • info

        public void info​(Object message)
        Log a message to the Log4j Logger with INFO priority.
        Specified by:
        info in class LogEngine
        Parameters:
        message - log this message
      • info

        public void info​(Object message,
                         Throwable t)
        Log an error to the Log4j Logger with INFO priority.
        Specified by:
        info in class LogEngine
        Parameters:
        message - log this message
        t - log this cause
      • warn

        public void warn​(Object message)
        Log a message to the Log4j Logger with WARN priority.
        Specified by:
        warn in class LogEngine
        Parameters:
        message - log this message
      • warn

        public void warn​(Object message,
                         Throwable t)
        Log an error to the Log4j Logger with WARN priority.
        Specified by:
        warn in class LogEngine
        Parameters:
        message - log this message
        t - log this cause
      • error

        public void error​(Object message)
        Log a message to the Log4j Logger with ERROR priority.
        Specified by:
        error in class LogEngine
        Parameters:
        message - log this message
      • error

        public void error​(Object message,
                          Throwable t)
        Log an error to the Log4j Logger with ERROR priority.
        Specified by:
        error in class LogEngine
        Parameters:
        message - log this message
        t - log this cause
      • fatal

        public void fatal​(Object message)
        Log a message to the Log4j Logger with FATAL priority.
        Specified by:
        fatal in class LogEngine
        Parameters:
        message - log this message
      • fatal

        public void fatal​(Object message,
                          Throwable t)
        Log an error to the Log4j Logger with FATAL priority.
        Specified by:
        fatal in class LogEngine
        Parameters:
        message - log this message
        t - log this cause
      • getLogger

        public org.apache.log4j.Logger getLogger()
        Return the native Logger instance we are using.
        Returns:
        the logger
      • isDebugEnabled

        public boolean isDebugEnabled()
        Check whether the Log4j Logger used is enabled for DEBUG priority.
        Specified by:
        isDebugEnabled in class LogEngine
        Returns:
        true if log level is debug
      • isErrorEnabled

        public boolean isErrorEnabled()
        Check whether the Log4j Logger used is enabled for ERROR priority.
        Specified by:
        isErrorEnabled in class LogEngine
        Returns:
        true if log level is error
      • isFatalEnabled

        public boolean isFatalEnabled()
        Check whether the Log4j Logger used is enabled for FATAL priority.
        Specified by:
        isFatalEnabled in class LogEngine
        Returns:
        true if log level is fatal
      • isInfoEnabled

        public boolean isInfoEnabled()
        Check whether the Log4j Logger used is enabled for INFO priority.
        Specified by:
        isInfoEnabled in class LogEngine
        Returns:
        true if log level is info
      • isTraceEnabled

        public boolean isTraceEnabled()
        Check whether the Log4j Logger used is enabled for TRACE priority. For Log4J, this returns the value of isDebugEnabled()
        Specified by:
        isTraceEnabled in class LogEngine
        Returns:
        true if log level is trace
      • isWarnEnabled

        public boolean isWarnEnabled()
        Check whether the Log4j Logger used is enabled for WARN priority.
        Specified by:
        isWarnEnabled in class LogEngine
        Returns:
        true if log level is warn
      • close

        public void close()
        Specified by:
        close in class LogEngine