Skip to main content

Python logger handler that can send messages to a Slack channel.

Project description

Grassed Logging Handler

Python logging handler that can be configured to send messages to a Slack channel.

License Python Slack

SlackLogger builds on the base built-in logging.Handler to allow logging messages to logged via HTTPS to a Slack channel.

In addition to this, the handler also builds on the logging.Formatter class to help build fancier Slack messages using their layout blocks. The following tags are supported:

  • Header: plain text
  • Section: supports markdown
  • Divider: no text support

Getting Started

The package can be installed from the PyPi repository with pip install grassed or cloned from the git repo.

Documentation

Read the docs for usage and examples.

Check out Slack's documentation for Incoming Webhooks to learn how to set up a Slack app that can handle the incoming messages.

Message Rate Limits

SlackHandler is designed to log important messages to a place where people can view them immediately and respond. Note that Slack imposes message rate limits which SlackHandler respects.

Licence

Released under GPLv3 by Sam Vanderslink. Free to modify and reuse.

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

grassed-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

grassed-1.0.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file grassed-1.0.0.tar.gz.

File metadata

  • Download URL: grassed-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.1

File hashes

Hashes for grassed-1.0.0.tar.gz
Algorithm Hash digest
SHA256 826a481ea324b35d873e54ef7325cd49ba244d91c994816fbe7fef83f3431834
MD5 f88eb0280988e3ecf9c1a11ffd28211b
BLAKE2b-256 1d7b0167a2b36ea91f1c728f1a2174a84d1124ab2d853e0e30f8fbd61bfd9c20

See more details on using hashes here.

File details

Details for the file grassed-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: grassed-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.1

File hashes

Hashes for grassed-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 736950b50bc4fdde50a4a1ea3458f5bd828d32c71fe4b9ec2b2dfffb0dd6326a
MD5 7a5870c1e2251275ea73e15b1b2691ab
BLAKE2b-256 85efa1619a7968ebde754ca15a3cac40cadddd2945ba446fd8e5e89e3d456e66

See more details on using hashes here.

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