-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change loglevel of docker container & stdout? #310
Comments
@emilebosch Interesting point - it looks like you are correct and we emit information to stderr for the log output. I don't see a big downside to adjusting this, but I wonder what the expected behavior would be for warnings - I'd assume you'd only want actual errors sent to stderr? Also out of curiosity, what do you run for container orchestration / how do the logs flow from the container to Datadog? |
@lfittl Thanks for the response. We're using the Datadog helm chart that comes with datadog that takes care of log shipping. Since we pay per log line just as any other tool (i.e. splunk) its nice if there is an option to only log essential messages. I guess warn goes to stdout? Not 100% sure on this but here is some reference/guidance ipfs/go-log#60 Thank you much for considering this. |
@emilebosch Thanks for that, appreciate the reference! It does appear there are some alternate opinions referenced in that issue and others linked from it, but especially for a background process I can see how it could make sense to split it. The slightly easier solution for now would actually be to just add a |
@lfittl Maybe Another thing you might like to look into would be |
@emilebosch Great! - added the |
Fantastic thank you Lukas! |
Hi all 👋
I'm using pganalyze in our prod cluster and I was wondering whether there is a way to limit the logs only to output error or warn. Additionally it also seems like its not outputting on the right stdout for I (info)
We're using datadog as our monitoring system and it captures all the I's as Error. Usually and indication that logs are not send to the right fd.
The text was updated successfully, but these errors were encountered: