Grassed

Latest version: v1.0.0

Safety actively analyzes 624755 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.1

Added shebang for Linux compatibility.

1.1

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.

1.0

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.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.