logdna
A Python Package for Sending Logs to LogDNA
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 on this page — 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
logdna on PyPI
pip
pip install logdnauv
uv add logdnapoetry
poetry add logdnaInstalling 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 | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | dormant — 1,114 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 83,214/month — #14,093 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: logdna-1.18.12-py3-none-any.whl
Keywords: logdna, logging, logs, python, logdna.com, logger
Tags
More Logging packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
python-json-loggerFormats Python logging output as JSON, making…
permissive · top 1,000 on PyPI
structlogstructlog is a structured logging library that…
permissive · top 1,000 on PyPI
loguruLoguru provides a pre-configured logger that…
permissive · top 1,000 on PyPI
coloredlogsAdds colored output to Python's standard…
permissive · top 1,000 on PyPI
wandbwandb is a machine learning experiment tracking…
permissive · top 1,000 on PyPI
google-cloud-loggingWrites log entries to Google Cloud Logging and…
permissive · top 1,000 on PyPI
google-cloud-appengine-loggingClient library for Google Cloud AppEngine…
permissive · top 1,000 on PyPI
azure-monitor-ingestionSends custom logs and structured data to Azure…
permissive · top 5,000 on PyPI
JSON-log-formatterFormats Python logging records as JSON,…
permissive · top 5,000 on PyPI
jsonformatterFormats Python logging output as JSON, enabling…
permissive · top 15,000 on PyPI
google-cloud-bigquery-loggingPython client library for Google Cloud BigQuery…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-loggingIntegrates Python's standard logging module…
permissive · top 1,000 on PyPI
minilogMinilog wraps Python's standard logging module…
permissive · top 15,000 on PyPI
logging-treeVisualizes the hierarchy of loggers, handlers,…
permissive · top 15,000 on PyPI
flake8-loggingA Flake8 plugin that detects and flags common…
permissive · top 15,000 on PyPI