mirror of
https://github.com/luxfi/log.git
synced 2026-10-30 16:21:06 +00:00
Features:
- Zero-allocation logging (~8ns/op, 0 allocs)
- Zerolog-style chaining API: log.Info().Str("k","v").Msg("m")
- Geth-style traditional API: logger.Info("m", logger.String("k","v"))
- Structured logging with type-safe field constructors
- Leveled logging (Trace, Debug, Info, Warn, Error, Fatal, Panic)
- Context injection via With()
- Pretty console output with colors
- Sampling and hooks support
Based on rs/zerolog with added geth-style API layer.