Skip to main content

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

Metadata

Release files for coralogix-logger 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coralogix-logger 2.1.1
File Size Uploaded
coralogix_logger-2.1.1.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coralogix-logger 2.1.1
File Interpreter ABI Platform
coralogix_logger-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 52.7 kB

Release files / coralogix_logger-2.1.1.tar.gz

Download URL coralogix_logger-2.1.1.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cd590100b756f3dd5d0fdf6ee48b3afcabf8575941f1e1df2869498c90fbba31
BLAKE2b-256 checksum
How to use checksums
6e349db9d79c542ca64692f266fb161ddae8aec59dc6ae0d6a1cf1be6ba83a52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / coralogix_logger-2.1.1-py3-none-any.whl

Download URL coralogix_logger-2.1.1-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fb2683d4f5327df7e6000a81b60859db26171800b0b7ddcef9fbe682ef7e237
BLAKE2b-256 checksum
How to use checksums
72345dcfdb1c69712e66cf6326e9283144ffce1211ce315e40fbd42da98d5464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page