public class DefaultMessageLogger extends AbstractMessageLogger
| Constructor and Description |
|---|
DefaultMessageLogger(int level) |
| Modifier and Type | Method and Description |
|---|---|
void |
doEndProgress(java.lang.String msg)
Indicates the end of a long running task
|
void |
doProgress()
Indicates a progression for a long running task
|
int |
getLevel() |
void |
log(java.lang.String msg,
int level)
Logs a message at the given level.
|
void |
rawlog(java.lang.String msg,
int level)
Same as
MessageLogger.log(String, int), but without adding any contextual information to the
message. |
clearProblems, debug, deprecated, endProgress, endProgress, error, getErrors, getProblems, getWarns, info, isShowProgress, progress, rawinfo, setShowProgress, sumupProblems, verbose, warnpublic void log(java.lang.String msg,
int level)
MessageLogger
level constants are defined in the Message class.
msg - the message to loglevel - the level at which the message should be logged.Message.MSG_DEBUG,
Message.MSG_VERBOSE,
Message.MSG_INFO,
Message.MSG_WARN,
Message#MSG_ERRORpublic void rawlog(java.lang.String msg,
int level)
MessageLoggerMessageLogger.log(String, int), but without adding any contextual information to the
message.msg - the message to loglevel - the level at which the message should be logged.public void doProgress()
AbstractMessageLoggerdoProgress in class AbstractMessageLoggerpublic void doEndProgress(java.lang.String msg)
AbstractMessageLoggerdoEndProgress in class AbstractMessageLoggermsg - the message associated with long running task end.public int getLevel()