Hacker GitHub

← All repos

rs/zerolog

View on GitHub ↗ ★ 12,527 Go

Zero Allocation JSON Logger

12 mentions on Hacker News by 10 people: 4 stories, 8 comments · first 2017-07-05 · latest 2026-10-31

Mentions per year 12 mentions · busiest year 2020 (3)
20082026
  1. It can be useful to have zero-alloc libraries in Go, for use in larger programs that do allocate. See https://github.com/rs/zerolog for example.
  2. …module name. For example, both of these modules can exist, and I can import both into a given Go project: github.com/rs/zerolog mysite.com/myforks/zerolog
    comment by liampulles · 2024-01-03 · in Choosing Go at American Express (2019)
  3. …using zerolog directly [0] (my uneducated guess is it is likely due to pointer indirection). [0]: https://github.com/rs/zerolog/issues/571#issuecomment-166202...
    comment by dgunay · 2023-08-09 · in Go 1.21 Released
  4. …- stricter gofmt - https://github.com/stretchr/testify - test assertion library - https://github.com/rs/zerolog - logging - https://github.com/spf13/cobra - CLI framework FWIW, I just lifted all the tools we use for https://github.com/authz
    comment by jzelinskie · 2023-05-23 · in How to start a Go project in 2023
  5. …using `errors.WithStack` from https://github.com/pkg/errors The error can then be logged with https://github.com/rs/zerolog like this `log.Error().Stack().Err(err).Msg("")` For human readable output (instead of the standard JSON) use a…
    comment by mozey · 2021-08-24 · in Error stack traces in Go with x/xerror
  6. …pools , and Recyclables , but I can't seem to find good resources to get started with this. [0] https://github.com/rs/zerolog [1] https://github.com/ronomon/hash-table/blob/master/README.md
  7. Nice work. I personally tend to favour zero-gc and fast loggers like this one: https://github.com/rs/zerolog
  8. …choice than go-kit's logger given its higher performance [1] https://github.com/jawher/mow.cli [2] https://github.com/rs/zerolog
    comment by tetraodonpuffer · 2017-11-16 · in Using Go for Scalable Operating System Analytics