openpredictionmarkets / socialpredict

Easy to Deploy Prediction Market Platform
https://github.com/openpredictionmarkets/socialpredict
MIT License
55 stars 10 forks source link

Create Logging Convention and Use Zap for Logging on Backend #290

Open pwdel opened 2 months ago

pwdel commented 2 months ago

https://github.com/uber-go/zap/tree/master

Image

astrosnat commented 1 month ago

Question from me - Zap documentation differentiates between the SugaredLogger (4-10x faster, not suitable for contexts where performance and type safety are critical) and the Logger (better for performance and type safety, slower, only supports structured logging)

Thoughts on whether to use SugaredLogger or Logger in different contexts for SocialPredict?