Class LogEngine

    • Constructor Detail

      • LogEngine

        public LogEngine​(String name)
    • Method Detail

      • getName

        public String getName()
      • isDebugEnabled

        public abstract boolean isDebugEnabled()

        Is debug logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than debug.

        Returns:
        true if log level is debug
      • isErrorEnabled

        public abstract boolean isErrorEnabled()

        Is error logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than error.

        Returns:
        true if log level is error
      • isFatalEnabled

        public abstract boolean isFatalEnabled()

        Is fatal logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than fatal.

        Returns:
        true if log level is fatal
      • isInfoEnabled

        public abstract boolean isInfoEnabled()

        Is info logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than info.

        Returns:
        true if log level is info
      • isTraceEnabled

        public abstract boolean isTraceEnabled()

        Is trace logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than trace.

        Returns:
        true if log level is trace
      • isWarnEnabled

        public abstract boolean isWarnEnabled()

        Is warn logging currently enabled?

        Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than warn.

        Returns:
        true if log level is warn
      • trace

        public abstract void trace​(Object message)

        Log a message with trace log level.

        Parameters:
        message - log this message
      • trace

        public abstract void trace​(Object message,
                                   Throwable t)

        Log an error with trace log level.

        Parameters:
        message - log this message
        t - log this cause
      • debug

        public abstract void debug​(Object message)

        Log a message with debug log level.

        Parameters:
        message - log this message
      • debug

        public abstract void debug​(Object message,
                                   Throwable t)

        Log an error with debug log level.

        Parameters:
        message - log this message
        t - log this cause
      • info

        public abstract void info​(Object message)

        Log a message with info log level.

        Parameters:
        message - log this message
      • info

        public abstract void info​(Object message,
                                  Throwable t)

        Log an error with info log level.

        Parameters:
        message - log this message
        t - log this cause
      • warn

        public abstract void warn​(Object message)

        Log a message with warn log level.

        Parameters:
        message - log this message
      • warn

        public abstract void warn​(Object message,
                                  Throwable t)

        Log an error with warn log level.

        Parameters:
        message - log this message
        t - log this cause
      • error

        public abstract void error​(Object message)

        Log a message with error log level.

        Parameters:
        message - log this message
      • error

        public abstract void error​(Object message,
                                   Throwable t)

        Log an error with error log level.

        Parameters:
        message - log this message
        t - log this cause
      • fatal

        public abstract void fatal​(Object message)

        Log a message with fatal log level.

        Parameters:
        message - log this message
      • fatal

        public abstract void fatal​(Object message,
                                   Throwable t)

        Log an error with fatal log level.

        Parameters:
        message - log this message
        t - log this cause
      • doInitialize

        public abstract void doInitialize​(LogFactory logFactory)
      • close

        public abstract void close()