Begin, as Steve indicates in the post, by starting your command with:
ant -logger=org.apache.tools.ant.XmlLogger -logfile=out/buildlog.xml
That will create the log in the [DITAOT]\out folder, which is also the default location for your build output. Then you can append your specific build arguments, for example:
So the entire command would be:
ant -logger=org.apache.tools.ant.XmlLogger -logfile=buildlog.xml -Dargs.input=map.ditamp -Dtranstype=pdf2
Doing all that gets you a build log written in XML. You can open it in a browser, but the results aren’t great until you apply a stylesheet called log.xsl. Steve says in the post that you can find that .xsl file if you have a full ant install – I didn’t, so I created a stylesheet and posted it to the DITA Users’ Group file page.
If you build, and create the log, simply copy the .xsl file I posted to the same folder as your error log.
I’d love to see vendors take this and make an easy to read log. I’ll make a few improvements to what I’ve posted as well.