Package org.apache.tools.ant.listener
Class Log4jListener
java.lang.Object
org.apache.tools.ant.listener.Log4jListener
- All Implemented Interfaces:
java.util.EventListener,BuildListener
@Deprecated public class Log4jListener extends java.lang.Object implements BuildListener
Deprecated.
Apache Log4j (1) is not developed any more. Last
release is 1.2.17 from 26-May-2012 and contains vulnerability issues.
Use the standard listener or your own custom listener instead.
Listener which sends events to Log4j logging system.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOG_ANTDeprecated.log category we log into -
Constructor Summary
Constructors Constructor Description Log4jListener()Deprecated.Construct the listener -
Method Summary
Modifier and Type Method Description voidbuildFinished(BuildEvent event)Deprecated.Signals that the last target has finished.voidbuildStarted(BuildEvent event)Deprecated.Signals that a build has started.voidmessageLogged(BuildEvent event)Deprecated.Signals a message logging event.voidtargetFinished(BuildEvent event)Deprecated.Signals that a target has finished.voidtargetStarted(BuildEvent event)Deprecated.Signals that a target is starting.voidtaskFinished(BuildEvent event)Deprecated.Signals that a task has finished.voidtaskStarted(BuildEvent event)Deprecated.Signals that a task is starting.
-
Field Details
-
LOG_ANT
public static final java.lang.String LOG_ANTDeprecated.log category we log into- See Also:
- Constant Field Values
-
-
Constructor Details
-
Log4jListener
public Log4jListener()Deprecated.Construct the listener
-
-
Method Details
-
buildStarted
Deprecated.Description copied from interface:BuildListenerSignals that a build has started. This event is fired before any targets have started.This event is fired before the project instance is fully configured. In particular no properties have been set and the project may not know its name or default target, yet.
- Specified by:
buildStartedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
buildFinished
Deprecated.Description copied from interface:BuildListenerSignals that the last target has finished. This event will still be fired if an error occurred during the build.- Specified by:
buildFinishedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
targetStarted
Deprecated.Description copied from interface:BuildListenerSignals that a target is starting.- Specified by:
targetStartedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
targetFinished
Deprecated.Description copied from interface:BuildListenerSignals that a target has finished. This event will still be fired if an error occurred during the build.- Specified by:
targetFinishedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
taskStarted
Deprecated.Description copied from interface:BuildListenerSignals that a task is starting.- Specified by:
taskStartedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
taskFinished
Deprecated.Description copied from interface:BuildListenerSignals that a task has finished. This event will still be fired if an error occurred during the build.- Specified by:
taskFinishedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
messageLogged
Deprecated.Description copied from interface:BuildListenerSignals a message logging event.- Specified by:
messageLoggedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-