Skip to content

Releases: SSlinky/GrassedSlackHandler

SlackHandler 1.1 Async

19 Mar 03:33
4e04765
Compare
Choose a tag to compare

Added shebang for Linux compatibility.

SlackHandler 1.1 Async

18 Mar 03:58
Compare
Choose a tag to compare

Async

SlackHandler is now asynchronous. It will not slow down the main app.

Tick

Added a delay between each POST to Slack to prevent burst fire logging.

Backoff

Slackhandler respects backoff commands from Slack.

Note

It is possible to burst fire using multiple handlers to the same channel. In the event that your handler does get a backoff, it will sleep for the required amount of time before reattempting.

It is still recommended to restrict your handlers to one per channel.

SlackHandler 1.0

18 Mar 02:38
Compare
Choose a tag to compare

First stable release of SlackHandler.

Extends Python's built in logging.Handler. Its purpose is to log high importance messages to a Slack channel where a human can view, or get a push notification, in real time. This allows fast detection and correction of issues in a running application.

Features

  • Emits records to a Slack channel via webhook.
  • Includes a custom formatter.
    • Optionally use html style tags to wrap format sections
    • Tagged sections generate layout blocks.

Limitations

  • SlackHandler is not asynchronous. Overuse of this handler can add significant run time to your application.
  • SlackHandler does not respect Slack's rate limits, nor does it do anything with a backoff command.

Note: as this handler is synchronous, there is a natural delay between emits. As such, it is unlikely that a burst of logs will cause Slack to return a backoff.