Skip to main content

Datadog Logs logging handler and utilities

Project description



# Description

Datadog logs logging handler and utilities.

# Requirements

- Python3.6 or higher
- pip

# Installation

## PyPI

pip install ddlogs

# Usage

import logging
import ddlogs

logger = logging.getLogger('test')
h = ddlogs.DatadogLogsHandler(
api_key='your-datadog-api-key', # default: os.environ.get('DD_API_KEY')
source_category='samplecategory', # default: "ddlogs"
source='samplesource', # default: "python"
service='sampleservice', # default:
host='localhost') # default: gethostname()
logger.error({'foo': 'bar'})

# Output


- Source hosted at [GitHub](
- Report issues/questions/feature requests on [GitHub

Pull requests are very welcome! Make sure your patches are well tested.
Ideally create a topic branch for every separate change you make. For

1. Fork the repo
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


Created and maintained by [Masashi Terui]( (<>)


MIT License (see [LICENSE](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ddlogs, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size ddlogs-0.2.0-py3-none-any.whl (4.0 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size ddlogs-0.2.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page