ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian McCallion" <>
Subject RE: How to add Logging information to ANT
Date Mon, 10 Apr 2006 16:19:33 GMT
Hi Guillermo,

I tried the Log4J approach, but I found that the xml logger actually works
best for me.  

With this option the build still can write to stdout while it's executing,
but you also get a very detailed log in the form of an xml file.  It
includes time per task and a other very detailed information.  

To create a summary report, ANT includes a log.xsl stylesheet that you can
use to transform the detailed xml log into a very nicely formatted html
file.  Then you can insert the html file into mail messages and send it out
to people on your notification list.

Hope this helps.  Once I found the xml option I was pretty satisfied with
the logging.



Brian McCallion
WebSphere Automation Solutions
Bronze Drum Consulting, Inc.
230 Park Avenue
New York, NY  10169
T (646) 283-0534
F (646) 201-9596

-----Original Message-----
From: Meyer, Guillermo [] 
Sent: Monday, April 10, 2006 12:18 PM
To: Ant Users List
Subject: How to add Logging information to ANT

We are using ANT version 1.6.5.

We want to add more information in the ANT output. Not only which tag is
being executed but also thread id, current time, and other stuff that
ANT tags are doing (through some logger framework like Log4J).

We tried to add "ant -listener" but it didn't work.

Is it possible to configure Log4J in ANT? How can we pass the to be used by ant process?




View raw message