Structured Logging in Golang with Zap - Blazing Fast Logger

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • zap

    Blazing fast, structured, leveled logging in Go.

    Zap still have this issue https://github.com/uber-go/zap/issues/880 which kinda noisy

  • go-zero

    A cloud-native Go microservices framework with cli tool for productivity.

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

  • zlog

    A lightweight Golang library to handle logging (by zalgonoise)

    Even my logger has these basic features. I want to be able to have a Fatal /Panic call without having exit. There are redundant Loggers that need this (and Loggers for your Loggers).

  • gorestapi

    Golang REST API Template

    Check out https://github.com/snowzach/gorestapi I use Zap logger because of all the nice functions it has built in. Getting it to render to a format that Google Stackdriver can parse is just a matter of changing the encoder. For HTTP logging, I do override it and include all the HTTP specific fields. See the HTTP middleware I use to render the request in Stackdriver compatible format.

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