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
20082026
-
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.
comment by 80fj0348i · 2026-10-31 · in noalloc: Tooling and libraries to enforce zero heap allocations in Golang -
…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) -
…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 -
…- 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 -
…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 -
…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
comment by ignoramous · 2020-03-29 · in Show HN: Molecule – Streaming, zero-allocation protobuf decoding in Go -
Nice work. I personally tend to favour zero-gc and fast loggers like this one: https://github.com/rs/zerolog
comment by ignoramous · 2020-03-24 · in Show HN: Simplog – Simple logger with no dependencies written in 170 Lines of go -
…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