You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eventhub-logging

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventhub-logging

logging to azure eventhub module

0.0.3
pipPyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts