Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python Slack log handler using webhook

Project Description

# Python Slack log handler

Simple Python log handler for Slack using Slack webhooks.

# Installation

$ pip install slack_log_handler

## Usage

The only required argument for `SlackLogHandler` is the webhook URL.
You can pass the `channel`, `username`, or a dictionary of `emojis` for each
log level as named arguments.

Sample usage:

import os
import logging
from slack_log_handler import SlackLogHandler

WEBHOOK_URL = os.getenv('SLACK_URL')

slack_handler = SlackLogHandler(WEBHOOK_URL)

logger = logging.getLogger(__name__)

logger.error('Oh my god, an error occurred!')

## Troubleshooting

On Linux, if you get an error of this kind,


make sure the `ca-certificates` package (or whatever package your distribution uses instead) is installed.

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.0 kB) Copy SHA256 Hash SHA256
Wheel py3 Jan 8, 2018
(2.9 kB) Copy SHA256 Hash SHA256
Source None Jan 8, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers