Skip to content

Instantly share code, notes, and snippets.

View vivekhub's full-sized avatar

Vivek Venugopalan vivekhub

View GitHub Profile
@vivekhub
vivekhub / slack_handler.py
Created September 23, 2021 04:04 — forked from blakev/slack_handler.py
Python logging handler for publishing to a slack channel.
import os
import time
import json
import socket
import logging
from slacker import Slacker, Error as SlackerError
class SlackChannelHandler(logging.Handler):