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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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