Sourced from go.uber.org/zap's releases.
v1.25.0
This release contains several improvements including performance, API additions, and two new experimental packages whose APIs are unstable and may change in the future.
Enhancements:
- #1246[]: Add
zap/exp/zapslog
package for integration with slog.- #1273[]: Add
Name
toLogger
which returns the Logger's name if one is set.- #1281[]: Add
zap/exp/expfield
package which contains helper methodsStr
andStrs
for constructing String-like zap.Fields.- #1310[]: Reduce stack size on
Any
.Thanks to
@knight42
,@dzakaammar
,@bcspragu
, and@rexywork
for their contributions to this release.#1246: uber-go/zap#1246 #1273: uber-go/zap#1273 #1281: uber-go/zap#1281 #1310: uber-go/zap#1310
Sourced from go.uber.org/zap's changelog.
1.25.0 (1 Aug 2023)
This release contains several improvements including performance, API additions, and two new experimental packages whose APIs are unstable and may change in the future.
Enhancements:
- #1246[]: Add
zap/exp/zapslog
package for integration with slog.- #1273[]: Add
Name
toLogger
which returns the Logger's name if one is set.- #1281[]: Add
zap/exp/expfield
package which contains helper methodsStr
andStrs
for constructing String-like zap.Fields.- #1310[]: Reduce stack size on
Any
.Thanks to
@knight42
,@dzakaammar
,@bcspragu
, and@rexywork
for their contributions to this release.#1246: uber-go/zap#1246 #1273: uber-go/zap#1273 #1281: uber-go/zap#1281 #1310: uber-go/zap#1310
56468e7
Release v1.25.0249507a
zap.Any: Reduce stack size with generics (#1310)50b2db4
zap.Any add benchmarksa0674c8
Add direct coverage to zap.Any (#1309)1310691
Table test TestFieldConstructors382e251
Swap expected and got fields (#1282)24b7977
Add Name() to Logger (#1273)1155ed3
Introduce Str + Strs generic string helpers (#1281)4451b47
exp: Update slog, adjust for changes (#1276)845ca51
internal: Add and use a generic pool instead of using sync.Pool directly
(#1262)