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.
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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826a481ea324b35d873e54ef7325cd49ba244d91c994816fbe7fef83f3431834
|
|
| MD5 |
f88eb0280988e3ecf9c1a11ffd28211b
|
|
| BLAKE2b-256 |
1d7b0167a2b36ea91f1c728f1a2174a84d1124ab2d853e0e30f8fbd61bfd9c20
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
736950b50bc4fdde50a4a1ea3458f5bd828d32c71fe4b9ec2b2dfffb0dd6326a
|
|
| MD5 |
7a5870c1e2251275ea73e15b1b2691ab
|
|
| BLAKE2b-256 |
85efa1619a7968ebde754ca15a3cac40cadddd2945ba446fd8e5e89e3d456e66
|