org.objectweb.util.monolog.wrapper.ant
Class MonologBuildListener

java.lang.Object
  extended byorg.objectweb.util.monolog.wrapper.ant.MonologBuildListener
All Implemented Interfaces:
org.apache.tools.ant.BuildListener, java.util.EventListener

public class MonologBuildListener
extends java.lang.Object
implements org.apache.tools.ant.BuildListener

This class is an ant BuildListener which logs events in monolog. This listener uses the LoggerFactory initialized by the Monolog.class. The topic of the message is concatenation (with dot separator) of the project name, the target name and the task name.

Author:
S.Chassande-Barrioz

Constructor Summary
MonologBuildListener()
           
MonologBuildListener(Logger log)
           
MonologBuildListener(LoggerFactory loggerFactory)
           
 
Method Summary
 void buildFinished(org.apache.tools.ant.BuildEvent be)
           
 void buildStarted(org.apache.tools.ant.BuildEvent be)
           
 void messageLogged(org.apache.tools.ant.BuildEvent be)
           
 void targetFinished(org.apache.tools.ant.BuildEvent be)
           
 void targetStarted(org.apache.tools.ant.BuildEvent be)
           
 void taskFinished(org.apache.tools.ant.BuildEvent be)
           
 void taskStarted(org.apache.tools.ant.BuildEvent be)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonologBuildListener

public MonologBuildListener()

MonologBuildListener

public MonologBuildListener(Logger log)

MonologBuildListener

public MonologBuildListener(LoggerFactory loggerFactory)
Method Detail

buildStarted

public void buildStarted(org.apache.tools.ant.BuildEvent be)
Specified by:
buildStarted in interface org.apache.tools.ant.BuildListener

buildFinished

public void buildFinished(org.apache.tools.ant.BuildEvent be)
Specified by:
buildFinished in interface org.apache.tools.ant.BuildListener

targetStarted

public void targetStarted(org.apache.tools.ant.BuildEvent be)
Specified by:
targetStarted in interface org.apache.tools.ant.BuildListener

targetFinished

public void targetFinished(org.apache.tools.ant.BuildEvent be)
Specified by:
targetFinished in interface org.apache.tools.ant.BuildListener

taskStarted

public void taskStarted(org.apache.tools.ant.BuildEvent be)
Specified by:
taskStarted in interface org.apache.tools.ant.BuildListener

taskFinished

public void taskFinished(org.apache.tools.ant.BuildEvent be)
Specified by:
taskFinished in interface org.apache.tools.ant.BuildListener

messageLogged

public void messageLogged(org.apache.tools.ant.BuildEvent be)
Specified by:
messageLogged in interface org.apache.tools.ant.BuildListener