--- id: logging-azure-rest version: "1.3.0" license: MIT license_treatment: permissive maintenance: abandoned --- # logging-azure-rest — A python threadded logging handler and service extension for Azure Log Workspace OMS REST API. License: permissive · Maintenance: abandoned · Downloads: 1.7M/mo ## What it is and what it does This package extends Python's built-in logging module with a handler that sends logs to Azure Log Analytics Workspace asynchronously. It works by spawning a background thread that collects log records in a queue and periodically flushes them to Azure's REST API in bulk, designed to avoid blocking your application's main execution thread while shipping logs to the cloud. The handler reads three required environment variables to configure Azure credentials and workspace settings, plus an optional frequency parameter to control how often batched logs are sent. It integrates directly into Python's standard logging configuration, allowing you to route logs to Azure alongside or instead of local handlers, with support for custom formatters to structure the data for Azure Log Analytics queries. Use it for: - Centralize application logs from Python services running in Azure to a Log Analytics Workspace for monitoring and alerting. - Ship logs asynchronously without slowing down request handling in web applications or background workers. - Route only INFO and above logs to Azure while keeping DEBUG logs local, reducing Azure ingestion costs. - Integrate Azure log shipping into existing Python logging configurations without rewriting log handling code. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Python logging handler that asynchronously uploads application logs to Azure Log Analytics Workspace via REST API, using a background thread to batch and send logs without blocking the main process. No. The package is abandoned (last update 2021-06-14) with no maintenance activity. While it has a permissive MIT license and no known vulnerabilities, the lack of updates creates risk for compatibility with modern Python versions, Azure SDK changes, and security patches. High install friction compounds this. For new projects, use an actively maintained Azure logging solution instead. ## Install pip install logging-azure-rest uv add logging-azure-rest poetry add logging-azure-rest ## Installing logging-azure-rest Before you install: High install friction. Package is abandoned as of 2021-06-14 with no updates since the latest release, creating maintenance risk for compatibility with current Python versions and Azure API changes. License in practice: MIT license is permissive, allowing commercial and private use with minimal restrictions, making it safe to adopt from a licensing standpoint. Quickstart: pip install logging-azure-rest import logging from logging_azure.handler import AzureLogServiceHandler handler = AzureLogServiceHandler() logger = logging.getLogger(__name__) logger.addHandler(handler) logger.info('Message to Azure') Requires environment variables AZURE_LOG_CUSTOMER_ID, AZURE_LOG_SHARED_KEY, and AZURE_LOG_DEFAULT_NAME to be set before instantiating the handler. Verify before relying: - Whether requests and injector are actually declared as runtime dependencies, since they appear only in description text and not in the deps.runtime list. - Current compatibility with modern Azure SDK versions and authentication methods beyond the REST API approach. - Whether the abandoned status affects compatibility with current Python 3.x releases or Azure API changes. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: high - Maintenance: abandoned - Downloads: 1.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags azure log analytics handler, python logging to azure, azure oms rest api, async log shipping azure, azure workspace logging, azure-integration, abandoned [View on SkillFed](https://skillfed.io/packages/logging-azure-rest) · [View on PyPI](https://pypi.org/project/logging-azure-rest/)