Skip to main content

Provides a logging handler for Atlassian OpsGenie

Project description

opsgenie-logger

Code style: black

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

  1. Start a release with Git Flow
  2. Update the version number using Semantic Versioning in pyproject.toml and __init__.py
  3. Ensure all dependencies are pointing to released versions
  4. Update the release notes in CHANGELOG.md
    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

Contributors

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.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

opsgenie_logger-0.1.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file opsgenie-logger-0.1.4.tar.gz.

File metadata

  • Download URL: opsgenie-logger-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 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

Hashes for opsgenie-logger-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b5fd3aa7556864fa9164b686aa45bd72a46528c3032c1d9c6f13442afe392820
MD5 545bd36ea2e699fbeac7f42de42b5645
BLAKE2b-256 7a999c1437737891db082d46cdedf24abb66e8e63e0f854b181c8c55586834ce

See more details on using hashes here.

File details

Details for the file opsgenie_logger-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: opsgenie_logger-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.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

Hashes for opsgenie_logger-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8211342d2b1f56f46acb221f81f774cd240ae8a004e0b490ab3b488bd3f74920
MD5 4ce0dbd7cc356824713f15eea1c69877
BLAKE2b-256 a8045a081f98f400c91513b394618c2c67a771d04064db98e62b33fbe2e24bef

See more details on using hashes here.

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