Overview of zerolog features
masterzerolog is a fast, simple, zero-allocation JSON logger for Go. It focuses on efficient structured logging using a unique chaining API that avoids reflection and allocations.
Key features include:
- Performance: Blazing fast with low to zero allocation.
- Structured Logging: Native JSON and CBOR encoding formats.
- Logging Control: Leveled logging, sampling, and hooks.
- Contextualization: Support for contextual fields and
context.Contextintegration. - Integrations:
net/httpintegration andlog/slogcompatibility. - Developer Experience: Error logging with optional stacktraces and a
zerolog.ConsoleWriterfor pretty-printed console output during development.