Tags: luxfi/log
Tags
Update logger with geth-style API and GitHub Actions - Update geth.go to use ctx ...any pattern for geth compatibility - Update log/log.go with improved Logger interface and Field functions - Add GitHub Actions workflows: - CI: tests, linting, benchmarks - Docs: GitHub Pages deployment - Release: auto-release on tags - Add slog.go and zap.go adapters
Add short-form aliases and clean up terminology - Add Str, Dur, AnErr as aliases for String, Duration, NamedErr - Replace "zerolog" references with "logger" in code comments - Update README terminology: "Chaining API" and "Traditional API" - Keep external comparison to zerolog in README where appropriate
Initial logger package - high-performance zerolog-based logging
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.
PreviousNext