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
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 Distribution
eventhub-logging-0.0.3.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for eventhub_logging-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b35bc332adb02b400f2117fe99bd1cb90f3c458866fc43bbaf137e127442e40 |
|
MD5 | 5de20cf38002d709ea6f39189b372d21 |
|
BLAKE2b-256 | 4daa9dbb6c2336351f445d08ef7740f2cad092bf716afc0e20e088d6752ababe |