Skip to main content

Useful things for Logging.

Reason this release was yanked:

Old.

Project description

pip install gytrash

Set Slack Environment Variables

export SLACK_BOT_TOKEN="<BOT TOKEN>"

Import Gytrash and setup logger

import gytrash
import logging
log = logging.getLogger("slack_example")

gytrash.setup_logging(log, log_level=10, log_from_botocore=False, log_to_slack=True, slack_log_channel="<LOG NAME>", slack_log_level=20)

log.info("Test info message")
log.debug("Test debug message")

Project details


Download files

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

Source Distribution

gytrash-0.0.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

gytrash-0.0.3-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page