-
Notifications
You must be signed in to change notification settings - Fork 162
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
Audit logging messages and map them to Debug/Info/Error #3595
Comments
@worxli, @mkowalski, @karampok: Does the proposal sound reasonable to you? |
Switching this from a proposal to a planned change. |
I would like to have a guideline written in our docs that covers the following:
|
Extracted to Anapaya/scion#3072 (sorry, internal link). |
Let's go even further with the reduction in logging levels. As discussed in Slack, we can use three levels: Debug, Info, Error. From Slack (sorry, internal link):
|
To have this actionable:
Library |
None are of the above recommendations are set in stone, so we'll need to take a look at each of them and decide what makes most sense, maybe even editing the message and arguments. |
Let's tackle this for |
This is a BREAKING CHANGE, because logging infrastructure might need to re-evaluate scripts/alerting/logging levels in configs, etc. also this commit removes the logdog tool. All Trace logs are converted to Debug. All Crit logs are converted to Error. All Warn logs are converted to Info. Having more than those remaining 3 levels is not really needed: - debug: Contains low level details for developers. - info: Contains general information about the process, failures that happen as part of normal operation are also logged at this level. - error: Contains unexpected errors that lead to mal-functioning of the system in severe cases the application may choose to exit after an error log. This PR also removes logdog since that was a tool that was seldomly used and is strictly tied to the log format we have now, the format might change in the future. The new recommended logging level for production is info. Further audits are needed of what we need to log at info level instead of debug/error. Fixes scionproto#3595
This is a BREAKING CHANGE, because logging infrastructure might need to re-evaluate scripts/alerting/logging levels in configs, etc. also this commit removes the logdog tool. All Trace logs are converted to Debug. All Crit logs are converted to Error. All Warn logs are converted to Info. Having more than those remaining 3 levels is not really needed: - debug: Contains low level details for developers. - info: Contains general information about the process, failures that happen as part of normal operation are also logged at this level. - error: Contains unexpected errors that lead to mal-functioning of the system in severe cases the application may choose to exit after an error log. This PR also removes logdog since that was a tool that was seldomly used and is strictly tied to the log format we have now, the format might change in the future. The new recommended logging level for production is info. Further audits are needed of what we need to log at info level instead of debug/error. Fixes #3595
It would be useful to remove the tracing logging level, because:
go/lib/log
package, because the underlying logging library does not support custom levelsAs a first step, we should reevaluate all logging calls in the code base, and decide what level they should be. As a general guideline, the following could be used:
The text was updated successfully, but these errors were encountered: