Skip to main content

Coralogix Python SDK

Project description

Coralogix Python SDK

https://img.shields.io/pypi/v/coralogix_logger.svg https://img.shields.io/pypi/l/coralogix_logger.svg https://img.shields.io/pypi/pyversions/coralogix_logger.svg https://img.shields.io/pypi/wheel/coralogix_logger.svg https://img.shields.io/pypi/status/coralogix_logger.svg https://travis-ci.org/coralogix/python-coralogix-sdk.svg?branch=master https://readthedocs.org/projects/python-coralogix-sdk/badge/?version=latest https://codecov.io/gh/coralogix/python-coralogix-sdk/branch/master/graph/badge.svg https://api.codeclimate.com/v1/badges/474f12c23edee33936b9/maintainability https://api.codeclimate.com/v1/badges/474f12c23edee33936b9/test_coverage https://img.shields.io/github/issues/coralogix/python-coralogix-sdk.svg https://img.shields.io/github/issues-pr/coralogix/python-coralogix-sdk.svg https://img.shields.io/github/contributors/coralogix/python-coralogix-sdk.svg

This package provides logging suites integrated with Coralogix logs analytics platform. To see how to use it, please read Coralogix Python SDK Docs.

Region Selection

The SDK requires a Coralogix region to be specified. You can specify the region in two ways:

  1. Environment Variable: Set the CORALOGIX_REGION environment variable to one of the supported regions.

  2. Code Parameter: Pass the region parameter when initializing the logger.

Note: The region is mandatory. If no region is provided (neither as a parameter nor via environment variable), the SDK will raise a ValueError.

Supported regions: - AP1 - Mumbai (AWS: ap-south-1) - AP2 - Singapore (AWS: ap-southeast-1) - AP3 - Jakarta (AWS: ap-southeast-3) - EU1 - Ireland (AWS: eu-west-1) - EU2 - Stockholm (AWS: eu-north-1) - US1 - Ohio (AWS: us-east-2) - US2 - N. Virginia (AWS: us-east-1)

Example usage:

from coralogix.handlers import CoralogixLogger

# Using region parameter
logger = CoralogixLogger(
    private_key="YOUR_PRIVATE_KEY",
    app_name="MyApp",
    subsystem="backend",
    region="EU1"
)

# Or set via environment variable
# export CORALOGIX_REGION=EU1

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

coralogix_logger-2.1.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coralogix_logger-2.1.1-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file coralogix_logger-2.1.1.tar.gz.

File metadata

  • Download URL: coralogix_logger-2.1.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coralogix_logger-2.1.1.tar.gz
Algorithm Hash digest
SHA256 cd590100b756f3dd5d0fdf6ee48b3afcabf8575941f1e1df2869498c90fbba31
MD5 94f7bfecabdfc28c7a02a5f959ad6e60
BLAKE2b-256 6e349db9d79c542ca64692f266fb161ddae8aec59dc6ae0d6a1cf1be6ba83a52

See more details on using hashes here.

File details

Details for the file coralogix_logger-2.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for coralogix_logger-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fb2683d4f5327df7e6000a81b60859db26171800b0b7ddcef9fbe682ef7e237
MD5 3ee78bc1a66d342714526c04ff2f792a
BLAKE2b-256 72345dcfdb1c69712e66cf6326e9283144ffce1211ce315e40fbd42da98d5464

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page