Basically any log package will be pretty quick. None of them will be zero overhead, that's impossible, but most will not affect the time of your requests terribly significantly.
I personally like logrus (https://github.com/sirupsen/logrus) for structured logging, it has a lot of adapters available to pipe the log wherever you need it to go. There's also a middlewear for gin called ginrus that'll log to logrus. If you want the fastest possible logging, glog (https://github.com/golang/glog) is very optimized but is just plaintext, not structured, and doesn't have all the adapters of logrus. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.