public class Log4jListener extends java.lang.Object implements BuildListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOG_ANT
log category we log into
|
| Constructor and Description |
|---|
Log4jListener()
Construct the listener and make sure there is a valid appender.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildFinished(BuildEvent event)
Signals that the last target has finished.
|
void |
buildStarted(BuildEvent event)
Signals that a build has started.
|
void |
messageLogged(BuildEvent event)
Signals a message logging event.
|
void |
targetFinished(BuildEvent event)
Signals that a target has finished.
|
void |
targetStarted(BuildEvent event)
Signals that a target is starting.
|
void |
taskFinished(BuildEvent event)
Signals that a task has finished.
|
void |
taskStarted(BuildEvent event)
Signals that a task is starting.
|
public static final java.lang.String LOG_ANT
public Log4jListener()
public void buildStarted(BuildEvent event)
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.
.buildStarted in interface BuildListenerevent - An event with any relevant extra information.
Must not be null.public void buildFinished(BuildEvent event)
buildFinished in interface BuildListenerevent - An event with any relevant extra information.
Must not be null.BuildEvent.getException()public void targetStarted(BuildEvent event)
targetStarted in interface BuildListenerevent - An event with any relevant extra information.
Must not be null.BuildEvent.getTarget()public void targetFinished(BuildEvent event)
targetFinished in interface BuildListenerevent - An event with any relevant extra information.
Must not be null.BuildEvent.getException()public void taskStarted(BuildEvent event)
taskStarted in interface BuildListenerevent - An event with any relevant extra information.
Must not be null.BuildEvent.getTask()public void taskFinished(BuildEvent event)
taskFinished in interface BuildListenerevent - An event with any relevant extra information.
Must not be null.BuildEvent.getException()public void messageLogged(BuildEvent event)
messageLogged in interface BuildListenerevent - An event with any relevant extra information.
Must not be null.BuildEvent.getMessage(),
BuildEvent.getException(),
BuildEvent.getPriority()