wafflehaus / chewcrew

LUNCH!
http://chewcrew.cc:8080/api
ISC License
0 stars 0 forks source link

Decide on logging and error libs for golang. #21

Closed davidgwking closed 10 years ago

davidgwking commented 10 years ago

Go's native error type leaves much to be desired, so I suggest we use a library to capture nice things like stack traces. I've briefly used https://github.com/jsimnz/errgo, and found it to be a huge improvement over native errors.

Logging because logging.

Here's some logging libs that I've found but haven't researched beyond the superficial scan of github: https://github.com/op/go-logging (appears well featured and documented) https://github.com/cihub/seelog (appears well featured) https://github.com/golang/glog (used this a couple of weeks ago. very bare bones.)

davidgwking commented 10 years ago

I implemented a logging prototype by wrapping go-logging, which all in all looked to be the better library.

Still open to alternatives as that was primarily explorative work.

davidgwking commented 10 years ago

I'm happy with the bootstrapping so far.

If more work is required, further issues can be opened.