Skip to content
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

Feature/Reformat Logs #35

Open
5 tasks
faraonc opened this issue Jun 1, 2019 · 0 comments
Open
5 tasks

Feature/Reformat Logs #35

faraonc opened this issue Jun 1, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@faraonc
Copy link
Member

faraonc commented Jun 1, 2019

Description

As a developer, I need my logs to be properly formatted for ease of analysis.

The logs will contain the following fields

  • appname, the name of the service
  • hostname, the DNS alias or IP-address
  • level, "panic", "fatal", "error", "warning", "info", "debug", "trace"
  • msg, log message
  • time, created UTC timestamp for the log entry
  • severity, none, low, medium, high importance of the log entry
  • method, the calling method or function

Consider using the library https://github.com/sirupsen/logrus

Reference: https://www.datadoghq.com/blog/go-logging/

Story Points

3

Definitions of Done

  • use hwsc-lib to wrap the implementation
  • logs are formatted as JSON
{"time":"2019-03-06T13:37:12-05:00","appname":"foo-app","hostname":"staging-1","level":"info",","severity":"low", "method":"main","msg":"My first ssl event from Golang"}
  • update GoLang services
  • update Python service
  • unit test
@faraonc faraonc added the enhancement New feature or request label Jun 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants