--- id: logdna version: "1.18.12" license: MIT license_treatment: permissive maintenance: dormant --- # logdna — A Python Package for Sending Logs to LogDNA License: permissive · Maintenance: dormant · Downloads: 83.2K/mo ## What it is and what it does logdna is a Python logging handler that bridges the standard library's logging module to LogDNA, a cloud-based log aggregation service. It wraps log records into HTTP requests and sends them to LogDNA's ingestion endpoint, allowing centralized log collection and search across multiple Python applications. The handler integrates as a standard logging.Handler, so you configure it once and then use normal log.info(), log.warning(), etc. calls to send logs to the cloud. The package supports metadata attachment (custom fields, app names, environments, hostnames), optional searchable metadata indexing, custom log levels, and configurable ingestion endpoints. It depends only on requests for HTTP communication. Configuration can be done programmatically or via Python's fileConfig/dictConfig, making it suitable for Django and other framework integrations. Use it for: - Aggregate logs from multiple Python services into a single LogDNA dashboard for centralized monitoring. - Add structured metadata (app name, environment, custom fields) to logs for better filtering and debugging in production. - Replace local file-based logging with cloud ingestion to avoid disk management and enable real-time log search. - Integrate LogDNA logging into Django or other framework applications via the logging configuration dictionary. - Attach request-specific or transaction-specific metadata to log lines for correlation and tracing. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Integrates Python's standard logging framework with LogDNA's cloud log ingestion service, sending log records to a remote LogDNA account via HTTP. Yes, if you are already a LogDNA customer and need Python logging integration. The package is stable, has low install friction, and no known vulnerabilities. However, dormant maintenance (last release 2023-07-27) means no active bug fixes or updates; verify compatibility with your Python version and LogDNA API before adopting in new projects. ## Install pip install logdna uv add logdna poetry add logdna ## Installing logdna Before you install: Low install friction; single runtime dependency (requests). Maintenance is dormant—last release was 2023-07-27 with no recent commits. Repository is not archived but shows no active development. License in practice: MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions. Quickstart: import logging from logdna import LogDNAHandler import os key = os.environ['LOGDNA_INGESTION_KEY'] log = logging.getLogger('logdna') log.setLevel(logging.INFO) handler = LogDNAHandler(key, {'hostname': 'myhost'}) log.addHandler(handler) log.info('Test message') Requires a valid LogDNA Ingestion Key (obtained from https://app.logdna.com/manage/profile) set as an environment variable or passed directly. Verify before relying: - Current compatibility with Python 3.10+ (classifiers list only up to 3.9; requires_python field is empty) - Whether the deprecated include_standard_meta option will actually be removed in a future release - Real-world performance and reliability of the HTTP ingestion path under high-volume logging ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 83.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags logdna logging handler, send logs to logdna, cloud log aggregation python, remote log ingestion, logdna python integration, logging to logdna.com, centralized log collection, log-aggregation, cloud-logging [View on SkillFed](https://skillfed.io/packages/logdna) · [View on PyPI](https://pypi.org/project/logdna/)