Package org.apache.tools.ant.listener
Class SilentLogger
- java.lang.Object
-
- org.apache.tools.ant.DefaultLogger
-
- org.apache.tools.ant.listener.SilentLogger
-
- All Implemented Interfaces:
java.util.EventListener,BuildListener,BuildLogger
public class SilentLogger extends DefaultLogger
A logger which logs nothing but build failure and what task might output- Since:
- 1.9.0
-
-
Field Summary
-
Fields inherited from class org.apache.tools.ant.DefaultLogger
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out
-
-
Constructor Summary
Constructors Constructor Description SilentLogger()
-
Method Summary
Modifier and Type Method Description voidbuildFinished(BuildEvent event)Prints whether the build succeeded or failed, any errors the occurred during the build, and how long the build took.voidbuildStarted(BuildEvent event)Responds to a build being started by just remembering the current time.voidtargetFinished(BuildEvent event)No-op implementation.voidtargetStarted(BuildEvent event)Logs a message to say that the target has started if this logger allows information-level messages.voidtaskFinished(BuildEvent event)No-op implementation.voidtaskStarted(BuildEvent event)No-op implementation.-
Methods inherited from class org.apache.tools.ant.DefaultLogger
extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, messageLogged, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream
-
-
-
-
Method Detail
-
buildStarted
public void buildStarted(BuildEvent event)
Description copied from class:DefaultLoggerResponds to a build being started by just remembering the current time.- Specified by:
buildStartedin interfaceBuildListener- Overrides:
buildStartedin classDefaultLogger- Parameters:
event- Ignored.
-
buildFinished
public void buildFinished(BuildEvent event)
Description copied from class:DefaultLoggerPrints whether the build succeeded or failed, any errors the occurred during the build, and how long the build took.- Specified by:
buildFinishedin interfaceBuildListener- Overrides:
buildFinishedin classDefaultLogger- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getException()
-
targetStarted
public void targetStarted(BuildEvent event)
Description copied from class:DefaultLoggerLogs a message to say that the target has started if this logger allows information-level messages.- Specified by:
targetStartedin interfaceBuildListener- Overrides:
targetStartedin classDefaultLogger- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getTarget()
-
targetFinished
public void targetFinished(BuildEvent event)
Description copied from class:DefaultLoggerNo-op implementation.- Specified by:
targetFinishedin interfaceBuildListener- Overrides:
targetFinishedin classDefaultLogger- Parameters:
event- Ignored.- See Also:
BuildEvent.getException()
-
taskStarted
public void taskStarted(BuildEvent event)
Description copied from class:DefaultLoggerNo-op implementation.- Specified by:
taskStartedin interfaceBuildListener- Overrides:
taskStartedin classDefaultLogger- Parameters:
event- Ignored.- See Also:
BuildEvent.getTask()
-
taskFinished
public void taskFinished(BuildEvent event)
Description copied from class:DefaultLoggerNo-op implementation.- Specified by:
taskFinishedin interfaceBuildListener- Overrides:
taskFinishedin classDefaultLogger- Parameters:
event- Ignored.- See Also:
BuildEvent.getException()
-
-