You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
Provide structured, levelled logging to improve the dev experience of numary - first suggested by Alex K in this comment here. This allows allows for additional control over what is logged in the future.
Solution proposal
Implement leveled logging with zap. Also, clean up places around the app where if viper.GetBool("debug"), and replace with debug level logs.
An example of providing an Fx app with a logger (and specifically zap) is shown here in the Fx docs .
Describe alternatives you've considered
Other popular logging packages, such as logrus, could be used instead. Zap seems to be a natural fit for an Fx app but I'm not attached to the idea.
The text was updated successfully, but these errors were encountered:
Summary
Provide structured, levelled logging to improve the dev experience of numary - first suggested by Alex K in this comment here. This allows allows for additional control over what is logged in the future.
Solution proposal
Implement leveled logging with zap. Also, clean up places around the app where
if viper.GetBool("debug")
, and replace with debug level logs.An example of providing an Fx app with a logger (and specifically zap) is shown here in the Fx docs .
Describe alternatives you've considered
Other popular logging packages, such as logrus, could be used instead. Zap seems to be a natural fit for an Fx app but I'm not attached to the idea.
The text was updated successfully, but these errors were encountered: