|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.util.AbstractMessageLogger
org.apache.ivy.ant.AntMessageLogger
public class AntMessageLogger
Implementation of the simple message facility for ant.
Constructor Summary | |
---|---|
protected |
AntMessageLogger(org.apache.tools.ant.ProjectComponent task)
Constructs a new AntMEssageImpl instance. |
Method Summary | |
---|---|
void |
doEndProgress(java.lang.String msg)
Indicates the end of a long running task |
void |
doProgress()
Indicates a progression for a long running task |
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. |
static void |
register(org.apache.tools.ant.ProjectComponent task,
Ivy ivy)
Creates and register an AntMessageLogger for the given Task , with the given
Ivy instance. |
java.lang.String |
toString()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AntMessageLogger(org.apache.tools.ant.ProjectComponent task)
antProjectComponent
- the ant project component this message implementation should use for logging. Must
not be null
.Method Detail |
---|
public static void register(org.apache.tools.ant.ProjectComponent task, Ivy ivy)
AntMessageLogger
for the given Task
, with the given
Ivy
instance.
The created instance will automatically be unregistered from the Ivy instance when the task finishes.
task
- the task the logger should use for loggingivy
- the ivy instance on which the logger should be registeredpublic 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_ERROR
public void rawlog(java.lang.String msg, int level)
MessageLogger
MessageLogger.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()
AbstractMessageLogger
doProgress
in class AbstractMessageLogger
public void doEndProgress(java.lang.String msg)
AbstractMessageLogger
doEndProgress
in class AbstractMessageLogger
msg
- the message associated with long running task end.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |