-
Notifications
You must be signed in to change notification settings - Fork 17
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
Standardized logging #105
Comments
NanoBus already uses uber-go/zap, which is a structured logger. What you are asking for is to be able to change the logger configuration for production instead of only development. |
Can you list the spots where logging is different? There was an issue with the HTTP static server but that's been fixed AFAIK. |
https://github.com/nanobus/nanobus/search?q=println All of these are effectively log entries that need to be in the standard format. Again, I believe that all logs should be in JSON format so we can have different message payloads based on the specific use case. For example the HTTP server message can be an access log line where as other service message can have their own types of messages.
This way, a standard NanoBus log has a certain schema that must always include certain information. Each component must define its own log format that can be parsed without regex/pattern matching. |
Is your feature request related to a problem? Please describe.
Different interfaces/logs have different log formats and contents.
Propose a solution
Log formats should be standardized. Ideally they would use json so they can be machine parsed with grok/regex.
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: