Go Logging

Open-source Go projects categorized as Logging

Top 23 Go Logging Projects

  • GitHub repo logrus

    Structured, pluggable logging for Go.

    Project mention: logrus.errorf() causes panics? | reddit.com/r/golang | 2021-02-05

    Based on this snippet, it might be worth checking what logrus.PanicLevel is set to, inside your unit test.

  • GitHub repo loki

    Like Prometheus, but for logs.

    Project mention: ClickHouse as an alternative to Elasticsearch for log storage and analysis | news.ycombinator.com | 2021-03-02

    Promtail/Loki https://github.com/grafana/loki is an alternative to elk, but while it seems more lightweight, it definitely is less featureful. The integration with grafana/prometheus seems nice, but I've only toyed with it, not used in production.

  • GitHub repo zap

    Blazing fast, structured, leveled logging in Go.

    Project mention: logrus.errorf() causes panics? | reddit.com/r/golang | 2021-02-05
  • GitHub repo stern

    ⎈ Multi pod and container log tailing for Kubernetes

    Project mention: Top 20 useful k8s tools | dev.to | 2021-02-20

    Link : https://github.com/wercker/stern

  • GitHub repo zerolog

    Zero Allocation JSON Logger

    Project mention: Q: using sync.Pool vs buffer... | reddit.com/r/golang | 2021-01-21

    i dont know zerolog, from my quick research, i found this

  • GitHub repo spew

    Implements a deep pretty printer for Go data structures to aid in debugging

  • GitHub repo go-grpc-middleware

    Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.

    Project mention: Go, RabbitMQ and gRPC Clean Architecture microservice 💫👋 | dev.to | 2021-01-11

    And initialize our gRPC service, here i used gRPC Middleware repository for unary interceptors:

  • GitHub repo glog

    Leveled execution logs for Go (by golang)

    Project mention: can someone review my code? | reddit.com/r/golang | 2020-12-23

    Read similar repos, compare, learn: https://github.com/rs/zerolog https://christine.website/blog/ln-the-natural-logger-2020-10-17 https://github.com/sirupsen/logrus https://github.com/golang/glog https://github.com/nikandfor/tlog (this one is mine)

  • GitHub repo lumberjack

    lumberjack is a log rolling package for Go

    Project mention: Logging with Go | reddit.com/r/golang | 2021-01-25

    I've used this before and it works well: https://github.com/natefinch/lumberjack

  • GitHub repo tail

    Go package for reading from continously updated files (tail -f)

  • GitHub repo seelog

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

  • GitHub repo kail

    kubernetes log viewer

    Project mention: ktail 0.2.5 - a kubernetes log viewer | reddit.com/r/kubernetes | 2021-01-12

    For the command line, there is also kail: https://github.com/boz/kail

  • GitHub repo log

    Structured logging package for Go. (by apex)

  • GitHub repo log15

    Structured, composable logging for Go

  • GitHub repo Onelog

    Dead simple, super fast, zero allocation and modular logger for Golang

  • GitHub repo logxi

    A 12-factor app logger built for performance and happy development

  • GitHub repo phuslu/log

    Structured Logging Made Easy (by phuslu)

  • GitHub repo logutils

    Utilities for slightly better logging in Go (Golang).

  • GitHub repo go-logger

    Simple logger for Go programs. Allows custom formats for messages.

  • GitHub repo stern

    ⎈ Multi pod and container log tailing for Kubernetes -- Friendly fork of https://github.com/wercker/stern (by stern)

    Project mention: What's the best CLI tailing tool for k8s logs? | reddit.com/r/kubernetes | 2021-01-20

    It is outdated and I had lot of trouble using it with recent Kubernetes versions as the client code is rather old. I have used this friendly fork instead: https://github.com/stern/stern

  • GitHub repo httpretty

    Package httpretty prints the HTTP requests you make with Go pretty on your terminal. (by henvic)

  • GitHub repo sqldb-logger

    A logger for Go SQL database driver without modify existing *sql.DB stdlib usage.

  • GitHub repo logger

    Minimalistic logging library for Go. (by azer)

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-03-02.

Index

What are some of the best open-source Logging projects in Go? This list will help you:

Project Stars
1 logrus 17,283
2 loki 12,397
3 zap 12,022
4 stern 4,793
5 zerolog 4,409
6 spew 4,248
7 go-grpc-middleware 3,350
8 glog 2,655
9 lumberjack 2,404
10 tail 2,019
11 seelog 1,531
12 kail 1,251
13 log 1,087
14 log15 1,005
15 Onelog 387
16 logxi 346
17 phuslu/log 334
18 logutils 291
19 go-logger 261
20 stern 252
21 httpretty 213
22 sqldb-logger 158
23 logger 147