Ananto30 / golpo-express

Backend of the Social Network - Golpo
https://golpo.vercel.app
4 stars 15 forks source link

Add logging for errors [4XX, 5XX] #15

Closed Ananto30 closed 2 years ago

Ananto30 commented 2 years ago

Context

Currently, there are no logs for errors. So it's hard to debug in production or even in dev.

Task

AkhilChoubey commented 2 years ago

Hello @Ananto30 , I would like to work on this issue , I will be implementing logger for each and every error . can you please pecify , what I need to log , for example , will it be (error_status_code + err message ) or do I need to add something more to the logger ? Please assign this issue to me , also please add hacktoberfest-accepted lable for this issue.

Ananto30 commented 2 years ago

Cool! Log default format, we need the trace basically. If you can add a general logger that will log any error that happens inside the request-response lifecycle that will be the best 👍

And the "hacktoberfest-accepted" label is for Pull Requests 😅 Check this out https://github.com/Ananto30/golpo-express/pulls?q=is%3Apr+is%3Aclosed And the rules -

image