Sawmill
A plugin-driven terminal log analyzer
Installation • Quick Start • Features • Plugins • CI Integration
Sawmill helps you filter, analyze, and understand complex log files from tools like Vivado, Quartus, and more. Through a plugin architecture, it provides tool-specific intelligence while remaining extensible to any log format.
Features
- Smart Parsing - Plugins understand tool-specific message formats, multi-line grouping, and file references
- Summary Views - Quick overview of errors and warnings by severity and message ID
- Flexible Grouping - Group messages by severity, ID, file, category, or plugin-defined fields
- Regex Filtering - Include or exclude messages with powerful pattern matching
- CI Integration - Exit codes and waiver system for build pipeline integration
- Extensible - Write plugins for any log format with full customization
Installation
# Install from source
pip install -e .
# With development dependencies
pip install -e ".[dev]"
Quick Start
# Analyze a log file (auto-detects format)
sawmill vivado.log
# Show summary by severity with ID breakdown
sawmill vivado.log --summary
# Group messages by ID, file, or category
sawmill vivado.log --group-by id
sawmill vivado.log --group-by file
sawmill vivado.log --group-by category
# Filter by severity level (name or number)
sawmill vivado.log --severity warning
sawmill vivado.log --severity 1 # Same as above
# List available severity levels for a plugin
sawmill --list-severity --plugin vivado
# Filter with regex pattern
sawmill vivado.log --filter "timing"
# Exclude messages by pattern or ID
sawmill vivado.log --suppress "Synth 8-7129"
sawmill vivado.log --suppress-id "Synth 8-7129"
CLI Options
| Option | Description |
|---|---|
--summary |
Show summary counts by severity and message ID |
--group-by |
Group output by severity, id, file, or category |
--top N |
Limit messages per group (default: 5, 0 = no limit) |
--severity |
Filter to severity level and above (name or number) |
--list-severity |
List available severity levels from the plugin |
--filter |
Regex pattern to include messages |
--suppress |
Regex pattern to exclude messages |
--suppress-id |
Exclude specific message IDs |
--format |
Output format: text, json, or count |
--ci |
CI mode: exit 1 on errors/critical warnings |
--waivers |
Path to waiver TOML file |
Plugins
Sawmill uses a plugin architecture to support different log formats. Plugins are auto-detected based on log content.
Available Plugins
| Plugin | Repo | Description |
|---|---|---|
vivado |
https://github.com/sjalloq/sawmill-plugin-vivado | Xilinx Vivado synthesis and implementation logs |
slang |
https://github.com/sjalloq/sawmill-plugin-slang | Slang System Verilog Compiler |
External Plugins
Plugins can be installed separately and auto-register with sawmill:
# List available plugins
sawmill --list-plugins
# List available severity levels
sawmill --list-severity --plugin vivado
# List available grouping fields
sawmill --list-groupings --plugin vivado
Writing Plugins
Plugins implement the SawmillPlugin interface with hooks for:
can_handle(path)- Detect if plugin can parse a fileload_and_parse(path)- Parse file intoMessageobjectsget_filters()- Provide pre-defined filter definitionsget_severity_levels()- Define severity ordering and stylingget_grouping_fields()- Declare available grouping dimensions
CI Integration
Sawmill can be used in CI pipelines to fail builds on errors:
# Exit 1 if errors or critical warnings found
sawmill vivado.log --ci
# Also fail on regular warnings
sawmill vivado.log --ci --strict
# Use waivers to allow known issues
sawmill vivado.log --ci --waivers waivers.toml
Waiver Files
Waiver files are TOML files that specify known issues to ignore:
[[waiver]]
id = "Synth 8-7129"
reason = "Expected warning for RAM inference"
expires = "2025-12-31"
[[waiver]]
pattern = "timing.*slack"
reason = "Timing constraints not finalized"
Development
# Run tests
pytest tests/ -v
# Run tests with coverage
pytest tests/ --cov=sawmill
# Check linting
ruff check sawmill/
License
MIT
Metadata
Release files for sawmill-parser 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sawmill_parser-0.4.0.tar.gz | 221.4 kB | With provenance | Details for sawmill_parser-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sawmill_parser-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for sawmill_parser-0.4.0-py3-none-any.whl |
Total release size: 293.6 kB
Release files / sawmill_parser-0.4.0.tar.gz
| Download URL | sawmill_parser-0.4.0.tar.gz |
|---|---|
| Size | 221.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1ce4bac47e6038b9689eead5a89ac5ee4738a11ef1814ff63e96f5fd73e411a
|
|
BLAKE2b-256 checksum How to use checksums |
5c3177dd7f87baab7dd16e43a14e58c2f6a635719bfc68125b6bdba7b9e71808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / sawmill_parser-0.4.0-py3-none-any.whl
| Download URL | sawmill_parser-0.4.0-py3-none-any.whl |
|---|---|
| Size | 72.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d01a5467f8348bcc1a27656aa72b94b93c202a0322b8915341e694fed1114880
|
|
BLAKE2b-256 checksum How to use checksums |
13c46b4239896cb5aaaa6ecef1e05edc100056aec4ee1ef1991db82a96879c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for sawmill-parser 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sawmill_parser-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.