mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? This PR adds easy access to Zap's Stringer and Stringers fields. ## Why? `Stringer` fields are more efficient than `String` field. In the OSS repo alone we have 22 separate invocations of `tag.NewStringTag(..., foo.String())` which would be better served by using a Stringer tag. This only calls `String` (which can be expensive) when the line is actually emitted. Meaning fewer wasted cycles when calling `String()` for debug-level logs. ## How did you test it? - [x] I'm doing this manually elsewhere