KirillOsenkov / MSBuildStructuredLog

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

Display timestamp in logger messages #835

Closed jdom closed 6 days ago

jdom commented 1 week ago

Hi, is there a way to show the timestamp on each of the emitted messages within a task? I'm troubleshooting a race condition inside a complex msbuild task that emits a lot of output, and it would be good to have this info, which I know it's part of the binlog, but it's just not being displayed in the UI by default (at least I couldn't find it)

KirillOsenkov commented 1 week ago

I made it so that all messages under tasks are displayed with a timestamp: image

I haven't deployed this yet. If this is still relevant, can you build the project from source, try it out and let me know if this works OK for you?

Also see if any of the features mentioned here can help: https://github.com/KirillOsenkov/MSBuildStructuredLog/wiki/Timing-and-performance-data

Perhaps we can make $start > etc. queries work to filter out messages in a particular timespan?

KirillOsenkov commented 6 days ago

This is now shipped in 2.2.392

jdom commented 4 days ago

Thank you! This looks great! Sorry I was not able to verify it sooner