Skip to main content

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 by LoggerManager.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

snakemake_logger_plugin_sumerrs-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file snakemake_logger_plugin_sumerrs-0.2.0.tar.gz.

File metadata

File hashes

Hashes for snakemake_logger_plugin_sumerrs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 10885168bd6c6e30217ca6032f5cbc1195f919352ad883e650c56ffe7ede60fe
MD5 4e079980160676a0f471890027bc957b
BLAKE2b-256 e3760be6f2e9b43cf420a740fdab40fb2b2b8911d5d6a8f5e0959753b3f17527

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file snakemake_logger_plugin_sumerrs-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for snakemake_logger_plugin_sumerrs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d91eb25b76ad5c7c778d83ee284824c1b4998a2fa1de32b71df0f2656837b31
MD5 bd450c5068b944f623cadadd348371bb
BLAKE2b-256 0a6d460a6fea4edde4e44caddbff8e1699da6e5a0743b320a36a563c1b1be58c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page