Package org.apache.ivy.util
Class Message
- java.lang.Object
-
- org.apache.ivy.util.Message
-
public final class Message extends java.lang.ObjectLogging 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
MessageLoggerEngineassociated with theIvyengine.
-
-
Field Summary
Fields Modifier and Type Field Description static intMSG_DEBUGMessage priority of "debug".static intMSG_ERRMessage priority of "error".static intMSG_INFOMessage priority of "information".static intMSG_VERBOSEMessage priority of "verbose".static intMSG_WARNMessage priority of "warning".
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddebug(java.lang.String msg)static voiddebug(java.lang.String message, java.lang.Throwable t)static voiddebug(java.lang.Throwable t)static voiddeprecated(java.lang.String msg)static voidendProgress()static voidendProgress(java.lang.String msg)static voiderror(java.lang.String msg)static voiderror(java.lang.String message, java.lang.Throwable t)static MessageLoggergetDefaultLogger()Returns the current default logger.static java.util.List<java.lang.String>getProblems()static voidinfo(java.lang.String msg)static voidinfo(java.lang.String message, java.lang.Throwable t)static booleanisShowProgress()static voidlog(int logLevel, java.lang.String msg)static voidprogress()static voidrawinfo(java.lang.String msg)static voidsetDefaultLogger(MessageLogger logger)Change the default logger used when no other logger is currently configuredstatic voidsetShowProgress(boolean progress)static voidshowInfo()static voidsumupProblems()static voidverbose(java.lang.String msg)static voidverbose(java.lang.String message, java.lang.Throwable t)static voidwarn(java.lang.String msg)static voidwarn(java.lang.String message, java.lang.Throwable t)
-
-
-
Field Detail
-
MSG_ERR
public static final int MSG_ERR
Message priority of "error".- See Also:
- Constant Field Values
-
MSG_WARN
public static final int MSG_WARN
Message priority of "warning".- See Also:
- Constant Field Values
-
MSG_INFO
public static final int MSG_INFO
Message priority of "information".- See Also:
- Constant Field Values
-
MSG_VERBOSE
public static final int MSG_VERBOSE
Message priority of "verbose".- See Also:
- Constant Field Values
-
MSG_DEBUG
public static final int MSG_DEBUG
Message priority of "debug".- See Also:
- Constant Field Values
-
-
Method Detail
-
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 benull
-
showInfo
public static void showInfo()
-
debug
public static void debug(java.lang.String msg)
-
verbose
public static void verbose(java.lang.String msg)
-
info
public static void info(java.lang.String msg)
-
rawinfo
public static void rawinfo(java.lang.String msg)
-
deprecated
public static void deprecated(java.lang.String msg)
-
warn
public static void warn(java.lang.String msg)
-
error
public static void error(java.lang.String msg)
-
log
public static void log(int logLevel, java.lang.String msg)
-
getProblems
public static java.util.List<java.lang.String> getProblems()
-
sumupProblems
public static void sumupProblems()
-
progress
public static void progress()
-
endProgress
public static void endProgress()
-
endProgress
public static void endProgress(java.lang.String msg)
-
isShowProgress
public static boolean isShowProgress()
-
setShowProgress
public static void setShowProgress(boolean progress)
-
debug
public static void debug(java.lang.String message, java.lang.Throwable t)
-
verbose
public static void verbose(java.lang.String message, java.lang.Throwable t)
-
info
public static void info(java.lang.String message, java.lang.Throwable t)
-
warn
public static void warn(java.lang.String message, java.lang.Throwable t)
-
error
public static void error(java.lang.String message, java.lang.Throwable t)
-
debug
public static void debug(java.lang.Throwable t)
-
-