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 src.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for eventhub_logging-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cac2e40a061f627d7092d8831d4d61931e3f7cbd7f7ce4aca1a0be203ba3c2a9 |
|
MD5 | cda3ffe7621a122a01d384847ba1ada5 |
|
BLAKE2b-256 | f2c273086bd152445d5ea2f13ac581eb320a4a1d1e2c5e835395f0676b0167a0 |