When a Toolkit Ant build script runs, it sends processing messages to the log. By default the messages appear only on the console.
By adding the parameter -logger org.dita.dost.log.DITAOTBuildLogger to the invocation of Ant, you can also write the messages to a disk file. You can also specify the location for the log file by setting the args.logdir Ant processing parameter.