Interface Loggable

    • Method Detail

      • log

        default void log​(java.lang.String log,
                         java.lang.Object... objects)
        Formats the log string for incoming objects and logs it to Logger.log(Object). Uses the log type Logger.LogType.SCRIPT. Formatting uses instances of {} to replace objects in the order they're given.
        Parameters:
        log - String message to log
        objects - objects to format into the log string
      • log

        default void log​(java.awt.Color color,
                         java.lang.String log,
                         java.lang.Object... objects)
        Formats the log string for incoming objects and logs it to Logger.log(Color, Object). Uses log type Logger.LogType.SCRIPT.
        Parameters:
        color - Color for the log
        log - String message to log
        objects - objects to format into the log string
      • info

        default void info​(java.lang.String log,
                          java.lang.Object... objects)
        Formats the log string for incoming objects and logs it to Logger.info(Object). Uses log type Logger.LogType.INFO.
        Parameters:
        log - String message to log
        objects - objects to format into the log string
      • debug

        default void debug​(java.lang.String log,
                           java.lang.Object... objects)
        Formats the log string for incoming objects and logs it to Logger.debug(Object). Uses log type Logger.LogType.DEBUG.
        Parameters:
        log - String message to log
        objects - objects to format into the log string
      • warn

        default void warn​(java.lang.String log,
                          java.lang.Object... objects)
        Formats the log string for incoming objects and logs it to Logger.warn(Object). Uses log type Logger.LogType.WARN.
        Parameters:
        log - String message to log
        objects - objects to format into the log string
      • error

        default void error​(java.lang.String log,
                           java.lang.Object... objects)
        Formats the log string for incoming objects and logs it to Logger.error(Object). Uses log type Logger.LogType.ERROR.
        Parameters:
        log - String message to log
        objects - objects to format into the log string
      • error

        default void error​(java.lang.String log,
                           java.lang.Throwable exception,
                           java.lang.Object... objects)
        Logs an error message along with an exception. Uses log type Logger.LogType.ERROR.
        Parameters:
        log - String message to log
        exception - Exception to include in the log
        objects - objects to format into the log string