{"id":24482870,"url":"https://github.com/marcy-terui/ddlogs","last_synced_at":"2025-06-19T22:33:55.078Z","repository":{"id":62567191,"uuid":"152344060","full_name":"marcy-terui/ddlogs","owner":"marcy-terui","description":"Datadog Logs logging handler and utilities for Python","archived":false,"fork":false,"pushed_at":"2018-11-02T02:28:14.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T16:48:49.703Z","etag":null,"topics":["datadog","datadog-logs","logging","pypi","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ddlogs/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcy-terui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-10T01:24:45.000Z","updated_at":"2018-11-02T02:28:16.000Z","dependencies_parsed_at":"2022-11-03T19:06:53.788Z","dependency_job_id":null,"html_url":"https://github.com/marcy-terui/ddlogs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/marcy-terui/ddlogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fddlogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fddlogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fddlogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fddlogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcy-terui","download_url":"https://codeload.github.com/marcy-terui/ddlogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcy-terui%2Fddlogs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260836159,"owners_count":23070428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datadog","datadog-logs","logging","pypi","python"],"created_at":"2025-01-21T12:15:47.608Z","updated_at":"2025-06-19T22:33:50.059Z","avatar_url":"https://github.com/marcy-terui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ddlogs\n=======\n\n[![Version](https://img.shields.io/pypi/v/ddlogs.svg)](https://pypi.python.org/pypi/ddlogs)\n\n# Description\n\nDatadog logs logging handler and utilities.\n\n# Requirements\n\n- Python3.6 or higher\n- pip\n\n# Installation\n\n## PyPI\n\n```sh\npip install ddlogs\n```\n\n# Usage\n\n```python\nimport logging\nimport ddlogs\n\nlogger = logging.getLogger('test')\nh = ddlogs.DatadogLogsHandler(\n    api_key='your-datadog-api-key',     # default: os.environ.get('DD_API_KEY')\n    source_category='samplecategory',   # default: \"ddlogs\"\n    source='samplesource',              # default: \"python\"\n    service='sampleservice',            # default: logger.name\n    host='localhost')                   # default: gethostname()\nh.setFormatter(ddlogs.DictFormatter())\nlogger.addHandler(h)\nlogger.error({'foo': 'bar'})\n```\n\n# Output\n![screenshot](https://raw.githubusercontent.com/marcy-terui/ddlogs/master/images/screenshot.png)\n\nDevelopment\n-----------\n\n-   Source hosted at [GitHub](https://github.com/marcy-terui/ddlogs)\n-   Report issues/questions/feature requests on [GitHub\n    Issues](https://github.com/marcy-terui/ddlogs/issues)\n\nPull requests are very welcome! Make sure your patches are well tested.\nIdeally create a topic branch for every separate change you make. For\nexample:\n\n1.  Fork the repo\n2.  Create your feature branch (`git checkout -b my-new-feature`)\n3.  Commit your changes (`git commit -am 'Added some feature'`)\n4.  Push to the branch (`git push origin my-new-feature`)\n5.  Create new Pull Request\n\nAuthors\n-------\n\nCreated and maintained by [Masashi Terui](https://github.com/marcy-terui) (\u003cmarcy9114@gmail.com\u003e)\n\nLicense\n-------\n\nMIT License (see [LICENSE](https://github.com/marcy-terui/ddlogs/blob/master/LICENSE))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcy-terui%2Fddlogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcy-terui%2Fddlogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcy-terui%2Fddlogs/lists"}