Interface Logger

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      StopWatch createStopWatch​(String category)
      Returns a StopWatch used to log time taken by something.
      void debug​(String message)
      Writes message to jrebel.log if enabled.
      void debug​(String format, Object arg)
      Writes formatted message to jrebel.log if enabled.
      void debug​(String format, Object... args)
      Writes formatted message to jrebel.log if enabled.
      void debug​(String format, Object arg1, Object arg2)
      Writes formatted message to jrebel.log if enabled.
      void debug​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled.
      void echo()
      Adds a newline to jrebel.log if enabled and prints it to console if console output is enabled.
      void echo​(String message)
      Logs a message to jrebel.log if enabled and prints it to console if console output is enabled.
      void echoPrefix​(String message)
      Logs a message to jrebel.log if enabled and prints it to console if console output is enabled including the product name (JRebel) as prefix.
      void error​(String message)
      Writes message to jrebel.log if enabled.
      void error​(String format, Object arg)
      Writes formatted message to jrebel.log if enabled.
      void error​(String format, Object... args)
      Writes formatted message to jrebel.log if enabled.
      void error​(String format, Object arg1, Object arg2)
      Writes formatted message to jrebel.log if enabled.
      void error​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled.
      void error​(Throwable e)
      Dumps stacktrace to jrebel.log if enabled.
      void errorEcho​(String message)
      Writes message to jrebel.log if enabled and prints it to console if console output is enabled.
      void errorEcho​(String message, Object... args)  
      void errorEcho​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
      void errorEcho​(Throwable e)
      Dumps stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
      void errorTrace​(Throwable e)
      Dumps stacktrace to jrebel.log if trace is enabled.
      void info​(String message)
      Writes message to jrebel.log if enabled.
      void info​(String format, Object arg)
      Writes formatted message to jrebel.log if enabled.
      void info​(String format, Object... args)
      Writes formatted message to jrebel.log if enabled.
      void info​(String format, Object arg1, Object arg2)
      Writes formatted message to jrebel.log if enabled.
      void info​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled.
      void infoEcho​(String message)
      Writes message to jrebel.log if enabled and prints it to console if console output is enabled.
      void infoEcho​(String message, Object... args)  
      void infoEcho​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
      boolean isDebugEnabled()  
      boolean isEnabled()
      Returns true if logging to jrebel.log is enabled.
      boolean isErrorEnabled()  
      boolean isInfoEnabled()  
      boolean isTraceEnabled()  
      boolean isWarnEnabled()  
      void log​(String message)
      Logs a message to jrebel.log if enabled.
      Logger prefix​(String prefix)
      Returns a Logger instance including the given prefix in each message.
      Logger productPrefix​(String prefix)
      Returns a Logger instance including the product name plus the given prefix in each message.
      void trace​(String message)
      Logs a message to jrebel.log if trace is enabled.
      void trace​(String format, Object arg)
      Writes formatted message to jrebel.log if enabled.
      void trace​(String format, Object... args)
      Writes formatted message to jrebel.log if enabled.
      void trace​(String format, Object arg1, Object arg2)
      Writes formatted message to jrebel.log if enabled.
      void trace​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled.
      void warn​(String message)
      Writes message to jrebel.log if enabled.
      void warn​(String format, Object arg)
      Writes formatted message to jrebel.log if enabled.
      void warn​(String format, Object... args)
      Writes formatted message to jrebel.log if enabled.
      void warn​(String format, Object arg1, Object arg2)
      Writes formatted message to jrebel.log if enabled.
      void warn​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled.
      void warnEcho​(String message)
      Writes message to jrebel.log if enabled and prints it to console if console output is enabled.
      void warnEcho​(String message, Object... args)  
      void warnEcho​(String message, Throwable e)
      Dumps message and stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
    • Method Detail

      • error

        void error​(String message)
        Writes message to jrebel.log if enabled.
      • error

        void error​(String format,
                   Object arg)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • error

        void error​(String format,
                   Object arg1,
                   Object arg2)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • error

        void error​(String format,
                   Object... args)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • error

        void error​(String message,
                   Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled.
      • warn

        void warn​(String message)
        Writes message to jrebel.log if enabled.
      • warn

        void warn​(String format,
                  Object arg)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • warn

        void warn​(String format,
                  Object arg1,
                  Object arg2)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • warn

        void warn​(String format,
                  Object... args)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • warn

        void warn​(String message,
                  Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled.
      • info

        void info​(String message)
        Writes message to jrebel.log if enabled.
      • info

        void info​(String format,
                  Object arg)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • info

        void info​(String format,
                  Object arg1,
                  Object arg2)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • info

        void info​(String format,
                  Object... args)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • info

        void info​(String message,
                  Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled.
      • debug

        void debug​(String message)
        Writes message to jrebel.log if enabled.
      • debug

        void debug​(String format,
                   Object arg)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • debug

        void debug​(String format,
                   Object arg1,
                   Object arg2)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • debug

        void debug​(String format,
                   Object... args)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • debug

        void debug​(String message,
                   Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled.
      • trace

        void trace​(String message)
        Logs a message to jrebel.log if trace is enabled.
      • trace

        void trace​(String format,
                   Object arg)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • trace

        void trace​(String format,
                   Object arg1,
                   Object arg2)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • trace

        void trace​(String format,
                   Object... args)
        Writes formatted message to jrebel.log if enabled. Uses same format as slf4j.
      • trace

        void trace​(String message,
                   Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled.
      • isErrorEnabled

        boolean isErrorEnabled()
        Returns:
        true if error logging to jrebel.log is enabled.
      • isWarnEnabled

        boolean isWarnEnabled()
        Returns:
        true if warn logging to jrebel.log is enabled.
      • isInfoEnabled

        boolean isInfoEnabled()
        Returns:
        true if info logging to jrebel.log is enabled.
      • isDebugEnabled

        boolean isDebugEnabled()
        Returns:
        true if debug logging to jrebel.log is enabled.
      • isTraceEnabled

        boolean isTraceEnabled()
        Returns:
        true if trace logging to jrebel.log is enabled.
      • errorEcho

        void errorEcho​(String message)
        Writes message to jrebel.log if enabled and prints it to console if console output is enabled.
      • errorEcho

        void errorEcho​(String message,
                       Object... args)
      • errorEcho

        void errorEcho​(String message,
                       Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
      • warnEcho

        void warnEcho​(String message)
        Writes message to jrebel.log if enabled and prints it to console if console output is enabled.
      • warnEcho

        void warnEcho​(String message,
                      Object... args)
      • warnEcho

        void warnEcho​(String message,
                      Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
      • infoEcho

        void infoEcho​(String message)
        Writes message to jrebel.log if enabled and prints it to console if console output is enabled.
      • infoEcho

        void infoEcho​(String message,
                      Object... args)
      • infoEcho

        void infoEcho​(String message,
                      Throwable e)
        Dumps message and stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
      • createStopWatch

        StopWatch createStopWatch​(String category)
        Returns a StopWatch used to log time taken by something.
      • prefix

        Logger prefix​(String prefix)
        Returns a Logger instance including the given prefix in each message.

        E.g. logger.prefix("Prefix: ").log("Message") produces Prefix: Message.

      • productPrefix

        Logger productPrefix​(String prefix)
        Returns a Logger instance including the product name plus the given prefix in each message.

        E.g. logger.productPrefix("Prefix").log("Message") produces JRebel-Prefix: Message.

      • echo

        void echo()
        Adds a newline to jrebel.log if enabled and prints it to console if console output is enabled.
      • echo

        void echo​(String message)
        Logs a message to jrebel.log if enabled and prints it to console if console output is enabled.
      • echoPrefix

        void echoPrefix​(String message)
        Logs a message to jrebel.log if enabled and prints it to console if console output is enabled including the product name (JRebel) as prefix.
      • errorEcho

        void errorEcho​(Throwable e)
        Dumps stacktrace to jrebel.log if enabled and prints it to console if console output is enabled.
      • error

        void error​(Throwable e)
        Dumps stacktrace to jrebel.log if enabled.
      • log

        void log​(String message)
        Logs a message to jrebel.log if enabled.
      • errorTrace

        void errorTrace​(Throwable e)
        Dumps stacktrace to jrebel.log if trace is enabled.
      • isEnabled

        boolean isEnabled()
        Returns true if logging to jrebel.log is enabled.
        Returns:
        true if logging to jrebel.log is enabled.