snakemake-logger-plugin-sumerrs
A Snakemake logger plugin that collects warnings, plain errors and job failures during workflow runs, and reprints them when the run ends. It is a third output channel, in addition to Snakemake's live screen output and its logfile.
Usage
Installation
pip install snakemake-logger-plugin-sumerrs
Enable
Enable the plugin with --logger:
snakemake --logger sumerrs --cores 1
Example
Snakemake ends with 1 failed job and 0 warning
Failed job:
[Sat Aug 22 22:10:34 2026]
Error in rule fail:
message: None
jobid: 1
output: out.txt
shell:
false
(command exited with non-zero exit code)
Settings
| Parameter | Value | Description |
|---|---|---|
--logger-sumerrs-disable |
warning, error, job_fail; unknown tokens are ignored. Default is error, pass "" to also report errors. |
Comma-separated list of report kinds to disable. |
--logger-sumerrs-out |
&2 (default) is stderr, &1 is stdout, or a file path to append to. |
Where to print the report. |
# also report errors
snakemake --logger sumerrs --logger-sumerrs-disable ""
# write to stdout (quote it: `&` is a shell metacharacter)
snakemake --logger sumerrs --logger-sumerrs-out '&1'
# append to a file
snakemake --logger sumerrs --logger-sumerrs-out error.log
Behavior
- The plugin stays quiet during the run: it only collects records and prints the report once, when the run ends.
- It is printed directly to the chosen stream and never goes through Snakemake's logging handlers again, so it does not appear in the logfile.
- It is independent of
--quiet. - The report is emitted from
close(), i.e. after the logger queue has been drained byLoggerManager.stop(). - Job-failure entries are rendered with Snakemake's
DefaultFormatter, so they look exactly like the console output (including--print-logfiles). - The plugin handler is active only in the main process (
ExecMode.DEFAULT); subprocess/remote job processes skip plugin handlers.
Development
pixi install
pixi run test
# or
pixi run -e test pytest
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snakemake_logger_plugin_sumerrs-0.2.0.tar.gz.
File metadata
- Download URL: snakemake_logger_plugin_sumerrs-0.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10885168bd6c6e30217ca6032f5cbc1195f919352ad883e650c56ffe7ede60fe
|
|
| MD5 |
4e079980160676a0f471890027bc957b
|
|
| BLAKE2b-256 |
e3760be6f2e9b43cf420a740fdab40fb2b2b8911d5d6a8f5e0959753b3f17527
|
Provenance
The following attestation bundles were made for snakemake_logger_plugin_sumerrs-0.2.0.tar.gz:
Publisher:
release-please.yml on Hocnonsense/snakemake-logger-plugin-sumerrs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snakemake_logger_plugin_sumerrs-0.2.0.tar.gz -
Subject digest:
10885168bd6c6e30217ca6032f5cbc1195f919352ad883e650c56ffe7ede60fe - Sigstore transparency entry: 2566599394
- Sigstore integration time:
-
Permalink:
Hocnonsense/snakemake-logger-plugin-sumerrs@bcd7b236da73bb6228cca5821564fb3ec8f8ed15 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Hocnonsense
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@bcd7b236da73bb6228cca5821564fb3ec8f8ed15 -
Trigger Event:
push
-
Statement type:
File details
Details for the file snakemake_logger_plugin_sumerrs-0.2.0-py3-none-any.whl.
File metadata
- Download URL: snakemake_logger_plugin_sumerrs-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d91eb25b76ad5c7c778d83ee284824c1b4998a2fa1de32b71df0f2656837b31
|
|
| MD5 |
bd450c5068b944f623cadadd348371bb
|
|
| BLAKE2b-256 |
0a6d460a6fea4edde4e44caddbff8e1699da6e5a0743b320a36a563c1b1be58c
|
Provenance
The following attestation bundles were made for snakemake_logger_plugin_sumerrs-0.2.0-py3-none-any.whl:
Publisher:
release-please.yml on Hocnonsense/snakemake-logger-plugin-sumerrs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snakemake_logger_plugin_sumerrs-0.2.0-py3-none-any.whl -
Subject digest:
5d91eb25b76ad5c7c778d83ee284824c1b4998a2fa1de32b71df0f2656837b31 - Sigstore transparency entry: 2566599684
- Sigstore integration time:
-
Permalink:
Hocnonsense/snakemake-logger-plugin-sumerrs@bcd7b236da73bb6228cca5821564fb3ec8f8ed15 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Hocnonsense
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-please.yml@bcd7b236da73bb6228cca5821564fb3ec8f8ed15 -
Trigger Event:
push
-
Statement type: