Skip to content

Tags: luxfi/log

Tags

v1.4.0

Toggle v1.4.0's commit message
chore: remove zap compatibility layer

Removes zap.go which was a compatibility layer that was never used.
This eliminates go.uber.org/zap as a direct dependency.

Philosophy: ONE canonical way - NO adapters, NO compatibility layers.

v1.3.1

Toggle v1.3.1's commit message
fix: correct module path to luxfi/log

v1.3.0

Toggle v1.3.0's commit message
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

v1.0.1

Toggle v1.0.1's commit message
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

v1.0.0

Toggle v1.0.0's commit message
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.

v1.2.5

Toggle v1.2.5's commit message
Fix timestamp format initialization to use updated termTimeFormat

v1.2.4

Toggle v1.2.4's commit message
Update log format to use lowercase levels and simpler timestamp format

v1.2.3

Toggle v1.2.3's commit message
Update log format to minimal style with lowercase levels and simpler …

…timestamp

v1.2.2

Toggle v1.2.2's commit message
chore(deps): update zap to v1.27.1

Bump go.uber.org/zap from v1.27.0 to v1.27.1