Slack logging integration.
You can log on Slack with this handler.
import logging import slacklogging slack_logger = logging.getLogger('slack') slack_logger.addHandler(slacklogging.Handler(token, channel, username))
You have to make a bot user for this logger, and need to invite the bot user to the channel.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.