Have you replaced Sirupsen/logrus, and if so, with what?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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
  • zerolog

    Zero Allocation JSON Logger

  • My only issue with zerolog is that there has been no new releases in 5 years. Which means there are fairly serious/embarassing issues (e.g. https://github.com/rs/zerolog/issues/319) which have been fixed in master but still affect the "stable" v1.0.0 release... I have no idea why they don't cut a new release.

  • logrus

    Structured, pluggable logging for Go.

  • logrus has been my drop-in replacement for the built-in "log" module. I notice that:

  • 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
  • zap

    Blazing fast, structured, leveled logging in Go.

  • Many fantastic alternatives have sprung up. Logrus would look like those, had it been re-designed with what we know about structured logging in Go today. Check out, for example, Zerolog, Zap, and Apex.

  • log

    Structured logging package for Go. (by apex)

  • Many fantastic alternatives have sprung up. Logrus would look like those, had it been re-designed with what we know about structured logging in Go today. Check out, for example, Zerolog, Zap, and Apex.

  • logr

    A simple logging interface for Go

  • I recommend https://github.com/go-logr/logr and you can choose implementation freely but zerolog/zap are optimized for speed.

  • glog

    Leveled execution logs for Go (by golang)

  • Other than print and formatted print to stdout and stderr, what more do you need? I adapted much of the glog rationale into a logging wrapper. Allowing many thousands of unneeded lines from Logrus to be avoided. https://github.com/golang/glog

  • myapp

    🚀 How to build a Dockerized RESTful API application using Go.

  • This may be helpful to you. https://github.com/learning-cloud-native-go/myapp/blob/master/util/logger/logger.go . However it's just a wrapper for https://github.com/rs/zerolog/blob/master/log/log.go .

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • logger

    Extremely fast human and machine-readable logger for Go. This repository is a mirror. (by Elara6331)

  • I just uploaded it at https://gitea.arsenm.dev/Arsen6331/logger, with a mirror at https://github.com/Arsen6331/logger

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

  • Created a small logging library in Go.

    7 projects | /r/golang | 21 Sep 2022
  • Version 1.18 Refresh for Go Programmers

    2 projects | /r/golang | 20 Jun 2022
  • Logger and Clean Architecture

    6 projects | /r/golang | 27 Dec 2021
  • Go structured logging log/slog middleware

    1 project | news.ycombinator.com | 21 Dec 2023
  • Desvendando o package fmt do Go

    1 project | dev.to | 1 Nov 2023