tink3rlabs / todo-service

2 stars 0 forks source link

Add a JSON and text logger #7

Closed deanefrati closed 2 months ago

Lutherwaves commented 4 months ago

I found out the discussion around the following logs to be the most "hot" in recent time:

zerolog - https://github.com/rs/zerolog logrus - https://github.com/sirupsen/logrus and last but not least, which is the newest addition - slog https://go.dev/blog/slog

Some additional comparisons I see in my history - https://betterstack.com/community/guides/logging/best-golang-logging-libraries/

ayashjorden commented 4 months ago

We better do it in tink3rlabs/libraries/golang/common

deanefrati commented 3 months ago

Came across https://pkg.go.dev/log/slog which is part of the standard library and seem to be simple with support for text or json... worth looking at to see if it's sufficient instead of bringing in another external dependency.

UjwalaK commented 3 months ago

noted will look into this as well