Provides a logging handler for Atlassian OpsGenie
Project description
opsgenie-logger
A Python logging handler for Atlassian OpsGenie.
Basic Usage
import logging
from opsgenie_logger import OpsGenieHandler
logger = logging.getLogger()
handler = OpsGenieHandler(api_key="integration_api_key", team_name="my_team", level=logging.ERROR)
logger.addHandler(handler)
logger.error("This will go to OpsGenie!")
try:
raise ValueError("This is a problem")
except ValueError:
logger.exception("This stack trace is going to OpsGenie")
Contribution Guidelines
- Any changes should be covered with a unit test and documented in CHANGELOG.md
Release Process
- Start a release with Git Flow
- Update the version number using Semantic Versioning in
pyproject.toml
and__init__.py
- Ensure all dependencies are pointing to released versions
- Update the release notes in CHANGELOG.md
- Move changes from "Unreleased" to a section with appropriate version #
- Add a link at the bottom of the page to view this version in GitHub.
- Commit and push any changes
- Create a pull request from the release branch to master
- Ensure all checks pass (e.g. CircleCI)
- Open and merge the pull request
- Create a tag on the merge commit with the release number
Contributors
- Dylan Anthony danthony@triaxtec.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
opsgenie-logger-0.1.4.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for opsgenie_logger-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8211342d2b1f56f46acb221f81f774cd240ae8a004e0b490ab3b488bd3f74920 |
|
MD5 | 4ce0dbd7cc356824713f15eea1c69877 |
|
BLAKE2b-256 | a8045a081f98f400c91513b394618c2c67a771d04064db98e62b33fbe2e24bef |