Best Logging Library for Golang

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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.

  • 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

  • Go structured logging log/slog middleware

    1 project | news.ycombinator.com | 21 Dec 2023
  • Slogtest

    1 project | news.ycombinator.com | 16 Aug 2023
  • claim: qlog is faster, simpler and more efficient that slog; and does more practically useful stuff too

    4 projects | /r/golang | 14 May 2023
  • Log: A minimal, colorful Go logging library 🪵

    2 projects | /r/commandline | 21 Feb 2023
  • If you had to choose a logging framework, which one would you use?

    2 projects | /r/golang | 19 Oct 2022