Open lebauce opened 1 year ago
Are you in a hurry? We're planning to replace zap with slog after Go 1.22 is out. This is because we have a policy supporting the two latest Go versions, and slog was added in Go 1.21.
@knqyf263 Thanks for the notice ! I can definitely wait
Importing one package causes a logger to be created and Zap logger has a non negligible cost (a few hundred Kilobytes).
This PR simply defers the creation of the logger when it's actually used.