https://github.com/triaxtec/opsgenie-logger
A Python logging handler for Atlassian OpsGenie
https://github.com/triaxtec/opsgenie-logger
logger logging-library opsgenie opsgenie-api opsgenie-sdk
Last synced: 5 months ago
JSON representation
A Python logging handler for Atlassian OpsGenie
- Host: GitHub
- URL: https://github.com/triaxtec/opsgenie-logger
- Owner: triaxtec
- License: mit
- Archived: true
- Created: 2019-10-17T17:16:08.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2020-12-08T19:14:21.000Z (over 5 years ago)
- Last Synced: 2025-09-10T09:30:51.196Z (9 months ago)
- Topics: logger, logging-library, opsgenie, opsgenie-api, opsgenie-sdk
- Language: Python
- Size: 47.9 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
**THIS PROJECT IS NO LONGER MAINTAINED**
# opsgenie-logger
[](https://github.com/ambv/black)
[](https://travis-ci.org/triaxtec/opsgenie-logger)
A Python logging handler for Atlassian OpsGenie.
## Basic Usage
```python
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
1. Start a release with Git Flow
1. Update the version number using Semantic Versioning in `pyproject.toml` and `__init__.py`
1. Ensure all dependencies are pointing to released versions
1. Update the release notes in [CHANGELOG.md]
1. Move changes from "Unreleased" to a section with appropriate version #
1. Add a link at the bottom of the page to view this version in GitHub.
1. Commit and push any changes
1. Create a pull request from the release branch to master
1. Ensure all checks pass (e.g. CircleCI)
1. Open and merge the pull request
1. Create a tag on the merge commit with the release number
## Contributors
- Dylan Anthony
[CHANGELOG.md]: docs/CHANGELOG.md