Skip to main content

Sawmill plugin for slang

Project description

sawmill-plugin-slang

Sawmill plugin for slang

Quick Start

# Install in development mode
make install

# Run tests
make test

# Lint
make lint

Development

Start by filling in the TODO items in src/sawmill_plugin_slang/plugin.py. Work on hooks in this order:

  1. get_severity_levels — Define your tool's severity levels (already has a working default)
  2. can_handle — Detect your tool's log files by name or content
  3. load_and_parse — Parse log files into Message objects
  4. get_filters — Add pre-defined filters for common patterns
  5. extract_file_reference — Extract source file references from messages
  6. get_grouping_fields — Add custom grouping dimensions (optional)

Add real log output to examples/sample.log to use in tests.

How Sawmill Finds Your Plugin

Sawmill discovers plugins via Python entry points. The entry point is declared in pyproject.toml under [project.entry-points."sawmill.plugins"]. Running pip install -e . registers it. Confirm with sawmill --list-plugins.

Testing

make test

Tests are in tests/. The contract tests (test_plugin_contract.py) validate plugin structure and pass immediately. The other tests will start passing as you implement the plugin hooks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sawmill_plugin_slang-0.1.2.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

sawmill_plugin_slang-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file sawmill_plugin_slang-0.1.2.tar.gz.

File metadata

  • Download URL: sawmill_plugin_slang-0.1.2.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sawmill_plugin_slang-0.1.2.tar.gz
Algorithm Hash digest
SHA256 91cadea63b7f4fb110d62e43833a4aef2af571b392043d8f9571364ae328c32a
MD5 07aefe0ceb78111364ecc0e3958d26cd
BLAKE2b-256 55fa55de5af290336747b8fcf888cfce035e2320cd2614b9ff7773f329d93b63

See more details on using hashes here.

Provenance

The following attestation bundles were made for sawmill_plugin_slang-0.1.2.tar.gz:

Publisher: publish.yml on sjalloq/sawmill-plugin-slang

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

File details

Details for the file sawmill_plugin_slang-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sawmill_plugin_slang-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 368f1973b053d02672ef0baf23185ec8ee8927067dd78c94a5a3061e76cc56cd
MD5 0a4cafcc888e971c91b1b1186988de65
BLAKE2b-256 a2f6ac6b15c7e37066162b5c6ebab1bc03344cfea46c36e9af233dc64d96ee03

See more details on using hashes here.

Provenance

The following attestation bundles were made for sawmill_plugin_slang-0.1.2-py3-none-any.whl:

Publisher: publish.yml on sjalloq/sawmill-plugin-slang

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page