Package org.apache.ivy.ant
Class AntMessageLogger
- java.lang.Object
-
- org.apache.ivy.util.AbstractMessageLogger
-
- org.apache.ivy.ant.AntMessageLogger
-
- All Implemented Interfaces:
MessageLogger
public class AntMessageLogger extends AbstractMessageLogger
Implementation of the simple message facility for ant.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAntMessageLogger(org.apache.tools.ant.ProjectComponent task)Constructs a new AntMessageImpl instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoEndProgress(java.lang.String msg)Indicates the end of a long running taskvoiddoProgress()Indicates a progression for a long running taskvoidlog(java.lang.String msg, int level)Logs a message at the given level.voidrawlog(java.lang.String msg, int level)Same asMessageLogger.log(String, int), but without adding any contextual information to the message.static voidregister(org.apache.tools.ant.ProjectComponent task, Ivy ivy)java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
register
public static void register(org.apache.tools.ant.ProjectComponent task, Ivy ivy)Creates and register anAntMessageLoggerfor the givenTask, with the givenIvyinstance.The created instance will automatically be unregistered from the Ivy instance when the task finishes.
- Parameters:
task- the task the logger should use for loggingivy- the ivy instance on which the logger should be registered
-
log
public void log(java.lang.String msg, int level)Description copied from interface:MessageLoggerLogs a message at the given level.levelconstants are defined in theMessageclass.- Parameters:
msg- the message to loglevel- the level at which the message should be logged.- See Also:
Message.MSG_DEBUG,Message.MSG_VERBOSE,Message.MSG_INFO,Message.MSG_WARN,Message.MSG_ERR
-
rawlog
public void rawlog(java.lang.String msg, int level)Description copied from interface:MessageLoggerSame asMessageLogger.log(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.
-
doProgress
public void doProgress()
Description copied from class:AbstractMessageLoggerIndicates a progression for a long running task- Specified by:
doProgressin classAbstractMessageLogger
-
doEndProgress
public void doEndProgress(java.lang.String msg)
Description copied from class:AbstractMessageLoggerIndicates the end of a long running task- Specified by:
doEndProgressin classAbstractMessageLogger- Parameters:
msg- the message associated with long running task end.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-