Skip to main content

logging to azure eventhub module

Project description

Introduction

We developped this package for sending logging message to Azure EventHub system.

Installation

pip install eventhub-logging

Usage

Requirements

azure-eventhub version: 5.2.0 or higher

Examples

import logging
from logging_handler.eventhub_handler import EventHubHandler

logger = logging.getLogger(__name__)

logger.addHandler(EventHubHandler(
    endpoint="your eventhubs endpoint",
    access_keyname="your azure event hub access keyname",
    access_key="your access key value",
    entity_path="your event hub",
    partition_key="sth to partition"
))
logger.info("Send my first logging message ")

Contribute

Javariel

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

eventhub-logging-0.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

eventhub_logging-0.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file eventhub-logging-0.0.3.tar.gz.

File metadata

  • Download URL: eventhub-logging-0.0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for eventhub-logging-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ec725ccdeb164ef00a4512722ebe8554db129c33fd7221653e31130d915555f9
MD5 9871fb79aa718b72f8e78a526248cfcd
BLAKE2b-256 4c442c3e18cb9d82c197309a51dd7ec71bf645bc79bbb03d8f8b5ab633a6097e

See more details on using hashes here.

File details

Details for the file eventhub_logging-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: eventhub_logging-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for eventhub_logging-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b35bc332adb02b400f2117fe99bd1cb90f3c458866fc43bbaf137e127442e40
MD5 5de20cf38002d709ea6f39189b372d21
BLAKE2b-256 4daa9dbb6c2336351f445d08ef7740f2cad092bf716afc0e20e088d6752ababe

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