You have to add your Logger to the Project with addBuildListener, ant provides a few implementations which also implement BuildLogger
so
project.addBuildListener(new DefaultLogger());
or whatever your logger jave to be (as long as it implements
BuildListener
) should do the trick