Skip to main content

Provides a logging handler for Atlassian OpsGenie

Project description


Code style: black Build Status

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.error("This will go to OpsGenie!")
    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

Release Process

  1. Start a release with Git Flow
  2. Update the version number using Semantic Versioning in pyproject.toml and
  3. Ensure all dependencies are pointing to released versions
  4. Update the release notes in
    1. Move changes from "Unreleased" to a section with appropriate version #
    2. Add a link at the bottom of the page to view this version in GitHub.
  5. Commit and push any changes
  6. Create a pull request from the release branch to master
  7. Ensure all checks pass (e.g. CircleCI)
  8. Open and merge the pull request
  9. Create a tag on the merge commit with the release number


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

opsgenie-logger-0.1.6.tar.gz (4.4 kB view hashes)

Uploaded source

Built Distribution

opsgenie_logger-0.1.6-py3-none-any.whl (4.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page