org.apache.ivy.util

Class 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 Summary
static intMSG_DEBUG
Message priority of "debug".
static intMSG_ERR
Message priority of "error".
static intMSG_INFO
Message priority of "information".
static intMSG_VERBOSE
Message priority of "verbose".
static intMSG_WARN
Message priority of "warning".
Method Summary
static voiddebug(String msg)
static voiddeprecated(String msg)
static voidendProgress()
static voidendProgress(String msg)
static voiderror(String msg)
static MessageLoggergetDefaultLogger()
Returns the current default logger.
static ListgetProblems()
static voidinfo(String msg)
static booleanisShowProgress()
static voidprogress()
static voidrawinfo(String msg)
static voidsetDefaultLogger(MessageLogger logger)
Change the default logger used when no other logger is currently configured
static voidsetShowProgress(boolean progress)
static voidshowInfo()
static voidsumupProblems()
static voidverbose(String msg)
static voidwarn(String msg)

Field Detail

MSG_DEBUG

public static final int MSG_DEBUG
Message priority of "debug".

MSG_ERR

public static final int MSG_ERR
Message priority of "error".

MSG_INFO

public static final int MSG_INFO
Message priority of "information".

MSG_VERBOSE

public static final int MSG_VERBOSE
Message priority of "verbose".

MSG_WARN

public static final int MSG_WARN
Message priority of "warning".

Method Detail

debug

public static void debug(String msg)

deprecated

public static void deprecated(String msg)

endProgress

public static void endProgress()

endProgress

public static void endProgress(String msg)

error

public static void error(String msg)

getDefaultLogger

public static MessageLogger getDefaultLogger()
Returns the current default logger.

Returns: the current default logger; is never null.

getProblems

public static List getProblems()

info

public static void info(String msg)

isShowProgress

public static boolean isShowProgress()

progress

public static void progress()

rawinfo

public static void rawinfo(String msg)

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

setShowProgress

public static void setShowProgress(boolean progress)

showInfo

public static void showInfo()

sumupProblems

public static void sumupProblems()

verbose

public static void verbose(String msg)

warn

public static void warn(String msg)