Download formatted log

As the last step of a build config, I'd like to grab the log. I've looked at the logs in the agent's log folder, but these are hard to read (don't list names of steps; split over multiple files; order of events wrapped around the multiple files). The best would be to get the same log you can view and download through the website.

The best approach I've found is to form the download link from the build ID.

http://%system.teamcity.auth.userId%:%system.teamcity.auth.password%@<URL>/downloadBuildLog.html?buildId=%teamcity.build.id%

Is this the best approach?

Please sign in to leave a comment.