skillfed

logdna

A Python Package for Sending Logs to LogDNA

logdna v1.18.12 83.2K downloads/30d#14,093 on PyPI49
Permissive license MIT DORMANT released

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 logdna

uv

uv add logdna

poetry

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

Programming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: System :: Logging

Tags

logdna logging handlersend logs to logdnacloud log aggregation pythonremote log ingestionlogdna python integrationlogging to logdna.comcentralized log collection
log-aggregationcloud-logging

More Logging packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

python-json-logger

Formats Python logging output as JSON, making…

permissive · top 1,000 on PyPI

structlog

structlog is a structured logging library that…

permissive · top 1,000 on PyPI

loguru

Loguru provides a pre-configured logger that…

permissive · top 1,000 on PyPI

coloredlogs

Adds colored output to Python's standard…

permissive · top 1,000 on PyPI

wandb

wandb is a machine learning experiment tracking…

permissive · top 1,000 on PyPI

google-cloud-logging

Writes log entries to Google Cloud Logging and…

permissive · top 1,000 on PyPI

google-cloud-appengine-logging

Client library for Google Cloud AppEngine…

permissive · top 1,000 on PyPI

azure-monitor-ingestion

Sends custom logs and structured data to Azure…

permissive · top 5,000 on PyPI

JSON-log-formatter

Formats Python logging records as JSON,…

permissive · top 5,000 on PyPI

jsonformatter

Formats Python logging output as JSON, enabling…

permissive · top 15,000 on PyPI

google-cloud-bigquery-logging

Python client library for Google Cloud BigQuery…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-logging

Integrates Python's standard logging module…

permissive · top 1,000 on PyPI

minilog

Minilog wraps Python's standard logging module…

permissive · top 15,000 on PyPI

logging-tree

Visualizes the hierarchy of loggers, handlers,…

permissive · top 15,000 on PyPI

flake8-logging

A Flake8 plugin that detects and flags common…

permissive · top 15,000 on PyPI