Package org.apache.tools.ant.listener
Class ProfileLogger
java.lang.Object
org.apache.tools.ant.DefaultLogger
org.apache.tools.ant.listener.ProfileLogger
- All Implemented Interfaces:
java.util.EventListener
,BuildListener
,BuildLogger
public class ProfileLogger extends DefaultLogger
This is a special logger that is designed to profile builds.
- Since:
- Ant1.8
-
Field Summary
Fields inherited from class org.apache.tools.ant.DefaultLogger
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out
-
Constructor Summary
Constructors Constructor Description ProfileLogger()
-
Method Summary
Modifier and Type Method Description void
targetFinished(BuildEvent event)
Logs a message to say that the target has finished.void
targetStarted(BuildEvent event)
Logs a message to say that the target has started.void
taskFinished(BuildEvent event)
Logs a message to say that the task has finished.void
taskStarted(BuildEvent event)
Logs a message to say that the task has started.Methods inherited from class org.apache.tools.ant.DefaultLogger
buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, messageLogged, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream
-
Constructor Details
-
ProfileLogger
public ProfileLogger()
-
-
Method Details
-
targetStarted
Logs a message to say that the target has started.- Specified by:
targetStarted
in interfaceBuildListener
- Overrides:
targetStarted
in classDefaultLogger
- Parameters:
event
- An event with any relevant extra information. Must not benull
.- See Also:
BuildEvent.getTarget()
-
targetFinished
Logs a message to say that the target has finished.- Specified by:
targetFinished
in interfaceBuildListener
- Overrides:
targetFinished
in classDefaultLogger
- Parameters:
event
- An event with any relevant extra information. Must not benull
.- See Also:
BuildEvent.getException()
-
taskStarted
Logs a message to say that the task has started.- Specified by:
taskStarted
in interfaceBuildListener
- Overrides:
taskStarted
in classDefaultLogger
- Parameters:
event
- An event with any relevant extra information. Must not benull
.- See Also:
BuildEvent.getTask()
-
taskFinished
Logs a message to say that the task has finished.- Specified by:
taskFinished
in interfaceBuildListener
- Overrides:
taskFinished
in classDefaultLogger
- Parameters:
event
- An event with any relevant extra information. Must not benull
.- See Also:
BuildEvent.getException()
-