Package org.apache.ivy.util
Class DefaultMessageLogger
java.lang.Object
org.apache.ivy.util.AbstractMessageLogger
org.apache.ivy.util.DefaultMessageLogger
- All Implemented Interfaces:
MessageLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doEndProgress
(String msg) Indicates the end of a long running taskvoid
Indicates a progression for a long running taskint
getLevel()
void
Logs a message at the given level.void
Same asMessageLogger.log(String, int)
, but without adding any contextual information to the message.Methods inherited from class org.apache.ivy.util.AbstractMessageLogger
clearProblems, debug, deprecated, endProgress, endProgress, error, getErrors, getProblems, getWarns, info, isShowProgress, progress, rawinfo, setShowProgress, sumupProblems, verbose, warn
-
Constructor Details
-
DefaultMessageLogger
public DefaultMessageLogger(int level) - Parameters:
level
- ditto
-
-
Method Details
-
log
Description copied from interface:MessageLogger
Logs a message at the given level.level
constants are defined in theMessage
class.- Parameters:
msg
- the message to loglevel
- the level at which the message should be logged.- See Also:
-
rawlog
Description copied from interface:MessageLogger
Same asMessageLogger.log(String, int)
, but without adding any contextual information to the message.- Parameters:
msg
- the message to loglevel
- the level at which the message should be logged.
-
doProgress
public void doProgress()Description copied from class:AbstractMessageLogger
Indicates a progression for a long running task- Specified by:
doProgress
in classAbstractMessageLogger
-
doEndProgress
Description copied from class:AbstractMessageLogger
Indicates the end of a long running task- Specified by:
doEndProgress
in classAbstractMessageLogger
- Parameters:
msg
- the message associated with long running task end.
-
getLevel
public int getLevel()
-