MSBuild Structured Log Viewer logo

MSBuild Structured Log Viewer Kirill Osenkov

Use this command to install MSBuild Structured Log Viewer:
winget install --id=KirillOsenkov.MSBuildStructuredLogViewer -e

A logger that can be passed to MSBuild to record a detailed log file and a WPF viewer app to view the log files in a tree form.

MSBuild Structured Log Viewer is a tool designed to record and analyze detailed logs generated by MSBuild. It consists of two main components: a logger that can be integrated into MSBuild builds to produce binary log files, and a WPF viewer application for examining these logs in an organized, tree-like structure.

Key Features:

  • Binary Log Recording: Captures comprehensive build events in a compressed format, reducing disk space usage while retaining detailed information.
  • Structured Viewing: Presents logged data in a hierarchical tree view, enabling users to easily navigate and analyze build processes.
  • Sensitive Data Redaction: Allows users to remove sensitive information from logs before sharing, protecting environment variables, paths, and other private data.
  • Command-Line Integration: Supports the /bl switch for MSBuild, facilitating straightforward integration into existing build pipelines.
  • Programmatic Access: Offers a .NET API for programmatically loading and querying binary logs, enhancing tooling capabilities for analysis and automation.

Audience & Benefit:
Ideal for developers, build engineers, and teams working with MSBuild-based projects, this tool provides actionable insights to optimize build performance, troubleshoot issues, and improve development workflows. It balances detailed logging with minimal overhead, ensuring faster builds while maintaining the ability to reconstruct logs as needed.

The viewer supports both binary log files (.binlog) and large XML logs, offering flexibility in how users analyze their build data. Additionally, it includes features for source code embedding, allowing correlation of log events with project files and targets.

To install MSBuild Structured Log Viewer, use the following command:
winget install KirillOsenkov.MSBuildStructuredLogViewer.

Versions
2.2.490
2.2.489
2.2.488
2.2.487
2.2.480
2.2.476
2.2.474
2.2.465
2.2.441
2.2.392