Class Message

java.lang.Object
org.apache.ivy.util.Message

public final class Message extends Object
Logging utility class.

This class provides static methods for easy access to the current logger in IvyContext.

To configure logging, you should use the methods provided by the MessageLoggerEngine associated with the Ivy engine.

  • Field Details

    • MSG_ERR

      public static final int MSG_ERR
      Message priority of "error".
      See Also:
    • MSG_WARN

      public static final int MSG_WARN
      Message priority of "warning".
      See Also:
    • MSG_INFO

      public static final int MSG_INFO
      Message priority of "information".
      See Also:
    • MSG_VERBOSE

      public static final int MSG_VERBOSE
      Message priority of "verbose".
      See Also:
    • MSG_DEBUG

      public static final int MSG_DEBUG
      Message priority of "debug".
      See Also:
  • Method Details

    • getDefaultLogger

      public static MessageLogger getDefaultLogger()
      Returns the current default logger.
      Returns:
      the current default logger; is never null.
    • setDefaultLogger

      public static void setDefaultLogger(MessageLogger logger)
      Change the default logger used when no other logger is currently configured
      Parameters:
      logger - the new default logger, must not be null
    • showInfo

      public static void showInfo()
    • debug

      public static void debug(String msg)
    • verbose

      public static void verbose(String msg)
    • info

      public static void info(String msg)
    • rawinfo

      public static void rawinfo(String msg)
    • deprecated

      public static void deprecated(String msg)
    • warn

      public static void warn(String msg)
    • error

      public static void error(String msg)
    • log

      public static void log(int logLevel, String msg)
    • getProblems

      public static List<String> getProblems()
    • sumupProblems

      public static void sumupProblems()
    • progress

      public static void progress()
    • endProgress

      public static void endProgress()
    • endProgress

      public static void endProgress(String msg)
    • isShowProgress

      public static boolean isShowProgress()
    • setShowProgress

      public static void setShowProgress(boolean progress)
    • debug

      public static void debug(String message, Throwable t)
    • verbose

      public static void verbose(String message, Throwable t)
    • info

      public static void info(String message, Throwable t)
    • warn

      public static void warn(String message, Throwable t)
    • error

      public static void error(String message, Throwable t)
    • debug

      public static void debug(Throwable t)