TFS logs all builds to file using diagnostic verbosity by default.
Team Foundation Build provides tools to help you debug and resolve problems such as:
- Failed or partially successful builds
- Exceptions, errors, or warnings
- Unexpected events or results
View logs are enabled after the Staging location is configured for your build defintion. If you do not configure your build to produce output (Staging location) then the Diagnostics – View Logs menu will be disabled
After build completion, you can see the logs from the Diagnostics menu.
You can configure the level of logging verbosity from the Process tab of the build defintion. Change the logging level to verbose to explore and diagnose build failures