public class DefaultMessageLogger extends Object implements MessageLogger
Constructor and Description |
---|
DefaultMessageLogger(int level) |
public void debug(String msg)
debug
in interface MessageLogger
public void error(String msg)
error
in interface MessageLogger
public int getLevel()
public void info(String msg)
info
in interface MessageLogger
public void log(String msg, int level)
MessageLogger
level
constants are defined in the Message
class.
log
in interface MessageLogger
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_ERR
public void verbose(String msg)
verbose
in interface MessageLogger
public void warn(String msg)
warn
in interface MessageLogger