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
Feat: standardize logging #213
base: main
Are you sure you want to change the base?
Conversation
Hi @ctlong, I really like the idea of standardizing the logging, I have three questions though:
This looks like a wip to me, so I want to know what are the ideas how it should work ;) |
@chombium this is definitely a WIP 😅. I left it in draft format for that reason, but also didn't expect anyone to look at it so quickly. As to your questions:
|
Thanks for the clarification @ctlong. Thb I'm also not sure if we need some logging library... When I've written about log levels, I meant that the user sets a log level and it doesn't get the log messages which are with lower priority than this level. A parameter with which the "log chattiness" of the app can be controlled.
|
Thanks for clarifying! Yeah, I agree that makes sense compared to using conditionals throughout code to check whether to run an |
Just amended the commit to include log levels. |
Now planning to wait until structured logging comes to the Go standard library (expected in Go 1.21). |
Description
Standardize logging across agents.
Checklist:
main
branch, or relevant version branchIf you have any questions, or want to get attention for a PR or issue please reach out on the #logging-and-metrics channel in the cloudfoundry slack