org.apache.ivy.util
public interface MessageLogger
Where the messages are logged is depending on the implementation.
This interface provides both level specific methods (info, warn, ...) and generic methods (MessageLogger, MessageLogger). 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 MSG_VERBOSE) and log the message at the actual level only when sumupProblems is called.
See Also: Message
Method Summary | |
---|---|
abstract void | clearProblems()
Clears the list of problems, warns and errors. |
abstract void | debug(String msg) |
abstract void | deprecated(String msg) |
abstract void | endProgress() |
abstract void | endProgress(String msg) |
abstract void | error(String msg) |
abstract List | getErrors() |
abstract List | getProblems() |
abstract List | getWarns() |
abstract void | info(String msg) |
abstract boolean | isShowProgress() |
abstract void | log(String msg, int level)
Logs a message at the given level.
|
abstract void | progress() |
abstract void | rawinfo(String msg) |
abstract void | rawlog(String msg, int level)
Same as MessageLogger, but without adding any contextual information to the
message.
|
abstract void | setShowProgress(boolean progress) |
abstract void | sumupProblems()
Sumup all problems encountered so far, and clear them. |
abstract void | verbose(String msg) |
abstract void | warn(String msg) |
level
constants are defined in the Message class.
Parameters: msg the message to log level the level at which the message should be logged.
See Also: MSG_DEBUG MSG_VERBOSE MSG_INFO MSG_WARN Message
Parameters: msg the message to log level the level at which the message should be logged.