Best Logging Library for Golang

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • For choosing the candidates for the poll, I didn't do any thorough research. I was looking for a library to use in my project at work, and I ended up at sirupsen/logrus which was already being used by one of the dependencies in that project.

  • logrus

    Structured, pluggable logging for Go.

  • For choosing the candidates for the poll, I didn't do any thorough research. I was looking for a library to use in my project at work, and I ended up at sirupsen/logrus which was already being used by one of the dependencies in that project.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • zerolog

    Zero Allocation JSON Logger

  • logrus README recommended using other libraries such as Zerolog, Zap, and Apex.

  • zap

    Blazing fast, structured, leveled logging in Go.

  • logrus README recommended using other libraries such as Zerolog, Zap, and Apex.

  • log

    Structured logging package for Go. (by apex)

  • logrus README recommended using other libraries such as Zerolog, Zap, and Apex.

  • glog

    Leveled execution logs for Go (by golang)

  • I started a poll on r/golang with these four candidates, but also came to know about glog which was a go port of a C++ project by Google. I used that option in the poll conducted on LinkedIn.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts