- Notifications
You must be signed in to change notification settings - Fork0
eieste/django-datadog-logger
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This Django Module can you help to send Logs directly to Datadog without add-agent. It uses the Datadog https log API.
Configure your django logging as follow:
LOGGING= {"version":1,"disable_existing_loggers":False,"formatters": {"datadogjson": {"()":"django_datadog_logger.formatter.DatadogJsonFormatter" } },"handlers": {"datadog": {"class":"django_datadog_logger.handlers.DatadogHandler","host":"http-intake.logs.datadoghq.eu",# or http-intake.logs.datadoghq.com"api_key":os.environ.get("DD_API_KEY"),# Your datadog API KEY"parameters": {"ddtags":"environment:demo","ddservice":"<YourApplicationName>",# Add here your additional parameters (Only key value pairs allowed) },"formatter":"datadogjson" }, },"loggers": {"": {"handlers": ["datadog"],"level":"DEBUG" },"django": {"handlers": ["datadog"],"level":"WARNING" } }}
The JSON Formatter originates from the project:
https://github.com/marselester/json-log-formatterPublished under MIT Licenseinstall the Orginal via: pip3 install json-log-formatter
About
A Datadog logger for Django
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.