You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies in advance as this might be a dumb question, but what is the correct way to set up the logging file/path for a Python integration with this buildpack? I've been following this guide
For context, I do have a working setup like this:
/datadog/conf.d/python.d/conf.yaml at the root of my app that gets correctly copied over to /app/.apt/etc/datadog-agent on Heroku deploy
[This is the step in question] I manually had to create and push up a /log/python/general.log file to my codebase and manually set an env var after deploying to use this path in my Django logging config (using the django-datadog-logger linked in the Datadog docs here
Is there a better way to do this? I don't really want this /app/log/python/general.log dir+file kept in my repo (I had to comment out *.log from my .gitignore which I also don't want) and I feel like I shouldn't have to be manually maintaining a API_LOG_ROOT env var on top of it all
Thanks!
The text was updated successfully, but these errors were encountered:
Hello @ashleyxue529 This is outside the scope of the buildpack, it is a question more for the logs team. How are you sending the logs to Datadog? through the heroku log drain? or the Datadog agent?
Ah sorry, is there a better place to post this question? Through the agent. I write logs to a .log file similar to how the agent writes logs to datadog.log/datadog-apm.log which then get routed to Datadog I believe.
Apologies in advance as this might be a dumb question, but what is the correct way to set up the logging file/path for a Python integration with this buildpack? I've been following this guide
For context, I do have a working setup like this:
/datadog/conf.d/python.d/conf.yaml
at the root of my app that gets correctly copied over to/app/.apt/etc/datadog-agent
on Heroku deployconf.yaml
looks like this/log/python/general.log
file to my codebase and manually set an env var after deploying to use this path in my Django logging config (using the django-datadog-logger linked in the Datadog docs hereIs there a better way to do this? I don't really want this
/app/log/python/general.log
dir+file kept in my repo (I had to comment out*.log
from my.gitignore
which I also don't want) and I feel like I shouldn't have to be manually maintaining aAPI_LOG_ROOT
env var on top of it allThanks!
The text was updated successfully, but these errors were encountered: