Interface SimplifiedLog

    • Method Detail

      • isErrorEnabled

        default boolean isErrorEnabled()
      • error

        default void error​(String msg)
      • isWarnEnabled

        default boolean isWarnEnabled()
      • warn

        default void warn​(String msg)
      • isInfoEnabled

        default boolean isInfoEnabled()
      • info

        default void info​(String msg)
      • isDebugEnabled

        default boolean isDebugEnabled()
      • debug

        default void debug​(String msg)
      • isTraceEnabled

        default boolean isTraceEnabled()
      • trace

        default void trace​(String msg)
      • isEnabledLevel

        boolean isEnabledLevel​(Level level)
      • log

        default void log​(Level level,
                         Object message)
      • isErrorEnabled

        static boolean isErrorEnabled​(Level level)
      • isWarnEnabled

        static boolean isWarnEnabled​(Level level)
      • isInfoEnabled

        static boolean isInfoEnabled​(Level level)
      • isDebugEnabled

        static boolean isDebugEnabled​(Level level)
      • isTraceEnabled

        static boolean isTraceEnabled​(Level level)
      • isLoggable

        static boolean isLoggable​(Level level,
                                  Level threshold)
        Verifies if the given level is above the required threshold for logging.
        Parameters:
        level - The Level to evaluate
        threshold - The threshold Level
        Returns:
        true if the evaluated level is above the required threshold.

        Note(s):

        • If either argument is null then result is false.

        • If the evaluated level is Level.OFF then result is false regardless of the threshold.

        • If the threshold is Level.ALL and the evaluated level is not Level.OFF the result is true.

        • Otherwise, the evaluated level Level.intValue() must be greater or equal to the threshold.