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.5.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file opsgenie-logger-0.1.5.tar.gz
.
File metadata
- Download URL: opsgenie-logger-0.1.5.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1028-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 171c8c4b4d245231ece439c73295b8580adc5207a5704dd1147854a048431ec9 |
|
MD5 | f38fcb18b9b71b455be7aebe0472f065 |
|
BLAKE2b-256 | 17eaba1855d9ee6eb0c2983299a61ca65b25d7d82bf9d85f56e427f7477800df |
File details
Details for the file opsgenie_logger-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: opsgenie_logger-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.1 Linux/4.15.0-1028-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ed52ee66bd6efa0527621c0f492f06b206da3b5f8ddc16c251db1eaec23d41 |
|
MD5 | 915e290e927f219a0159e7773e0423ff |
|
BLAKE2b-256 | a1414438c5f430e84809384ea45efc781989f56f1acc26d8ff561d03cd0235cd |