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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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