Package org.apache.ivy.util
Class Message
java.lang.Object
org.apache.ivy.util.Message
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
FieldsModifier and TypeFieldDescriptionstatic final intMessage priority of "debug".static final intMessage priority of "error".static final intMessage priority of "information".static final intMessage priority of "verbose".static final intMessage priority of "warning". -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voiddeprecated(String msg) static voidstatic voidendProgress(String msg) static voidstatic voidstatic MessageLoggerReturns the current default logger.static voidstatic voidstatic booleanstatic voidstatic voidprogress()static voidstatic voidsetDefaultLogger(MessageLogger logger) Change the default logger used when no other logger is currently configuredstatic voidsetShowProgress(boolean progress) static voidshowInfo()static voidstatic voidstatic voidstatic voidstatic void
-
Field Details
-
MSG_ERR
public static final int MSG_ERRMessage priority of "error".- See Also:
-
MSG_WARN
public static final int MSG_WARNMessage priority of "warning".- See Also:
-
MSG_INFO
public static final int MSG_INFOMessage priority of "information".- See Also:
-
MSG_VERBOSE
public static final int MSG_VERBOSEMessage priority of "verbose".- See Also:
-
MSG_DEBUG
public static final int MSG_DEBUGMessage priority of "debug".- See Also:
-
-
Method Details
-
getDefaultLogger
Returns the current default logger.- Returns:
- the current default logger; is never
null.
-
setDefaultLogger
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
-
verbose
-
info
-
rawinfo
-
deprecated
-
warn
-
error
-
log
-
getProblems
-
sumupProblems
public static void sumupProblems() -
progress
public static void progress() -
endProgress
public static void endProgress() -
endProgress
-
isShowProgress
public static boolean isShowProgress() -
setShowProgress
public static void setShowProgress(boolean progress) -
debug
-
verbose
-
info
-
warn
-
error
-
debug
-