datadog-logger
Python logging handler for DataDog events
Decision gist · record as of 2026-08-14
Yes, if you use Datadog and want to surface application errors as events in the Events Explorer with minimal setup. The single dependency, permissive license, and active maintenance make it a low-friction choice. Not suitable if you need Datadog's Log Management product or log aggregation beyond event creation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Datadog API credentials (api_key and app_key) and Python 3.10 or later.
- Low install friction with a single runtime dependency on datadog.
- Package is actively maintained with a recent release.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions.
last release 2026-07-27 (18 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 449,443 downloads/mo, #6,595 on PyPI
Alternatives
Verify before relying
pip install datadog-logger
import datadog
from datadog_logger import log_error_events
import logging
datadog.initialize(api_key="api-key", app_key="app-key")
logging.basicConfig()
log_error_events(tags=["tag1:value"], mentions=["@devs"])
logging.error("Oh no!")- Whether the package works with Datadog's newer Log Management product or only with the Events Explorer as documented.
- Performance characteristics when logging high volumes of events to Datadog.
What it is and what it does
Datadog Logger is a Python logging handler that bridges the standard logging module to Datadog's Events Explorer. Instead of sending logs to Datadog's Log Management product (which requires separate configuration), this handler converts log records into Datadog events, allowing you to surface ERROR and higher-level messages as discrete events that can be tagged, mentioned, and alerted on.
You configure it by either calling the convenience function `log_error_events()` on the root logger or manually instantiating `DatadogLogHandler` and adding it to specific loggers. The handler converts the log message into an event title, includes the full formatted record (and stack trace if present) as event text, and appends any mentions you specify. It requires only the datadog package as a dependency and supports Python 3.10 and later.
Use it for
- Alert on application errors by sending ERROR and CRITICAL logs as Datadog events tagged for your team.
- Route specific logger output to Datadog events while keeping other logs local or in a separate system.
- Notify Slack or other integrations via Datadog mentions when critical log events occur.
- Track exceptions with full stack traces as discrete events in Datadog's Events Explorer.
- Add custom tags to log-based events for filtering and correlation in Datadog dashboards.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Datadog and want to surface application errors as events in the Events Explorer with minimal setup.
The single dependency, permissive license, and active maintenance make it a low-friction choice. Not suitable if you need Datadog's Log Management product or log aggregation beyond event creation.
Install
datadog-logger on PyPI
Before you install
Low install friction with a single runtime dependency on datadog. Package is actively maintained with a recent release.
Requires Datadog API credentials (api_key and app_key) and Python 3.10 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions.
Quickstart
pip install datadog-logger
import datadog
from datadog_logger import log_error_events
import logging
datadog.initialize(api_key="api-key", app_key="app-key")
logging.basicConfig()
log_error_events(tags=["tag1:value"], mentions=["@devs"])
logging.error("Oh no!")
Verify before relying
- Whether the package works with Datadog's newer Log Management product or only with the Events Explorer as documented.
- Performance characteristics when logging high volumes of events to Datadog.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedatadog |
| Maintenance | Actively maintained 18 days since the last release |
| First released | |
| Downloads | 449,443 / month, #6,595 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: datadog_logger-1.0.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “datadog event logging”
- datadog-loggerSends Python log messages to Datadog as Events in the Events Explorer…
- django-log-formatter-asimFormats Django application logs in Azure Sentinel's ASIM (Advanced…
- django-datadog-loggerIntegrates Django applications with Datadog logging by providing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also datadog · mdc · fluent-logger · django-datadog-logger · seqlog · Flask-Datadog · multiprocessing-logging · cloudwatch · python-logging-loki · safe-init