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

Need Logging #25

Open
kitarp29 opened this issue Jan 22, 2022 · 0 comments
Open

Need Logging #25

kitarp29 opened this issue Jan 22, 2022 · 0 comments

Comments

@kitarp29
Copy link
Collaborator

Need to implement a system where I get logs of each request made to the API.
There are certain things that I want to be included in all these logs.

Let me explain the use case.
I want to put a monitoring system around the API. This system will visualize the data, and let us present it in a better manner.

Points each log MUST contain:

  • A unique RequestID (a uuid string). In the case of multiple users and various logs, it will help us find all the logs related to one request.
  • UserAgent
  • ClientIP Address
  • Latency(Not necessary)
  • Line and Function this log was generated
  • Time
  • Status/Error Message

This log will start with each request. Should move along in each function and dies once the request is completed.
I am sure there are packages in npm that could easily do it.
If anyone wants to solve this problem, comment here.
Else I will take on it one day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant