Enable binary logging for MSBuild in Visual Studio 2017
Install the Project System Tools (referenced by @MSalters).
Also install the MSBuild Binary and Structured Log Viewer.
The Project System Tools adds a new Build Logging window. When you right-click on entries in the window and choose Open Log..., the log will be opened using the viewer.
You'll need a small extension, Project System Tools