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
Modifier and TypeFieldDescriptionstatic final int
Message priority of "debug".static final int
Message priority of "error".static final int
Message priority of "information".static final int
Message priority of "verbose".static final int
Message priority of "warning". -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
static void
deprecated
(String msg) static void
static void
endProgress
(String msg) static void
static void
static MessageLogger
Returns the current default logger.static void
static void
static boolean
static void
static void
progress()
static void
static void
setDefaultLogger
(MessageLogger logger) Change the default logger used when no other logger is currently configuredstatic void
setShowProgress
(boolean progress) static void
showInfo()
static void
static void
static void
static void
static 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
-