Package org.apache.ivy.util
Interface MessageLogger
- All Known Implementing Classes:
AbstractMessageLogger
,AntMessageLogger
,DefaultMessageLogger
,MessageLoggerEngine
public interface MessageLogger
A MessageLogger is used to log messages.
Where the messages are logged is depending on the implementation.
This interface provides both level specific methods (info(String)
, warn(String)
, ...) and generic methods (log(String, int)
, rawlog(String, int)
). Note that
calling level specific methods is usually not equivalent to calling the generic method with the
corresponding level. Indeed, for warn and error level, the implementation will actually log the
message at a lower level (usually Message.MSG_VERBOSE
) and log the message at the actual
level only when sumupProblems()
is called.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the list of problems, warns and errors.void
void
deprecated
(String msg) void
void
endProgress
(String msg) void
getWarns()
void
boolean
void
Logs a message at the given level.void
progress()
void
void
Same aslog(String, int)
, but without adding any contextual information to the message.void
setShowProgress
(boolean progress) void
Sumup all problems encountered so far, and clear them.void
void
-
Method Details
-
log
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
Same aslog(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.
-
debug
-
verbose
-
deprecated
-
info
-
rawinfo
-
warn
-
error
-
getProblems
-
getWarns
-
getErrors
-
clearProblems
void clearProblems()Clears the list of problems, warns and errors. -
sumupProblems
void sumupProblems()Sumup all problems encountered so far, and clear them. -
progress
void progress() -
endProgress
void endProgress() -
endProgress
-
isShowProgress
boolean isShowProgress() -
setShowProgress
void setShowProgress(boolean progress)
-