KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.42k stars 188 forks source link

(not an issue) Need some tips to extract information from binlog file #617

Closed munerf closed 7 months ago

munerf commented 1 year ago

Hello,

Thank you for your awesome project, /bl is a life saver!

I wrote a very basic binlogger based on yours to retrieve some build information, timings, messages, etc. But I want to deprecate it and use yours then programmatically extract the information I need.

Is it possible for me to extract information about project build time, solution build time, and error messages? I've looked at this, but i'm not sure how to get, i.e: error message from a build or event all the runtime of each target of a build.

Could you share some tips? Thanks!

KirillOsenkov commented 1 year ago

Here's a page about reading binlog files programmatically: https://github.com/KirillOsenkov/MSBuildStructuredLog/wiki/Reading-binlog-files-programmatically

yuehuang010 commented 1 year ago

Plug. If you think your feature can be helpful to others, then consider contributing to binlog viewer itself.