Where is the build log located in Team Foundation Server 2010?

Deadly 提交于 2019-12-07 13:27:22

问题


I am looking for the physical location of the TFS workflow log. Not the MSBuild Log but the log you see when you click "View Log".

I have read in other forums that the log is stored in an SQL database. But which database is it and specifically what table?

Thanks. Hope someone knows the answer to this.


回答1:


The entire build log can be found in the Tfs_YourTeamProjectCollection database in the Tbl_BuildInformation. The Tbl_BuildInformation table contains self referencing entries to preserve the build log hierarchy, and all the build information is saved in XML. The information is saved as different node types which correspond to different build activities.

If you are interested in going down that route, I go into a little more detail in my blog. It is a bit much to post here.




回答2:


You can view the log file by using the TFS web access link. See this MSDN post for more details. I just used this trick and it was fantastic. http://social.msdn.microsoft.com/Forums/en/tfsbuild/thread/14ce49ea-f61a-45e2-be32-beffc81ce415?prof=required

Another way to view the log is via the web access(right click on the build output tab and choose "copy full path" and paste it onto a browser) and the log does get downloaded so you can scroll down quickly.




回答3:


The build log is a different view of the full which by default can be found under the [build location][Build name]\logs directory.

You can retrieve the list of log locations from the database by querying tbl_Build table in the Tfs_<CollectionName> database, e.g.:

   SELECT [BuildId],[StartTime],[FinishTime],[LogLocation]
   FROM [Tfs_DefaultCollection].[dbo].[tbl_Build]


来源:https://stackoverflow.com/questions/10697631/where-is-the-build-log-located-in-team-foundation-server-2010

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!