logrus VS zerolog

Compare logrus vs zerolog and see what are their differences.

logrus

Structured, pluggable logging for Go. (by sirupsen)

zerolog

Zero Allocation JSON Logger (by rs)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
logrus zerolog
32 39
23,916 9,646
- -
3.9 7.9
7 days ago 22 days ago
Go Go
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

logrus

Posts with mentions or reviews of logrus. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-02.

zerolog

Posts with mentions or reviews of zerolog. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-08.

What are some alternatives?

When comparing logrus and zerolog you can also consider the following projects:

zap - Blazing fast, structured, leveled logging in Go.

glog - Leveled execution logs for Go

lumberjack - lumberjack is a log rolling package for Go

slog

Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

log15 - Structured, composable logging for Go

log - Structured logging package for Go.

seelog - Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting.

gomock - GoMock is a mocking framework for the Go programming language.