Logging, the act of recording events that occur in a system, is essential to creating performant software systems. Being able to record and validate events within a programming system is a great way to ensure that you're maintaining code quality across versions of your applications. Logs can often quickly show a bug in your software, and being able to consume that information in a quick fashion can often help lower your mean time to recovery (MTTR).
There are many different logging packages for Go. A few of the most popular packages are as follows:
- The standard built-in log package provided by the Go maintainers
- The Glog package: https://github.com/golang/glog
- Uber's Zap package: https://github.com/uber-go/zap
- The Zero Allocation JSON logger: https://github.com/rs/zerolog
- The Logrus package: https://github.com/sirupsen/logrus...