You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used to be able to use AddCaller() with JSON output, but since updating Zap, I cannot. Is it ever going to be added back? If yes, when? If no, whats the last version of Zap where it still worked?
Error: cannot use zap.AddCaller() (type zap.Option) as type zap.JSONOption in argument to zap.NewJSONEncoder
The text was updated successfully, but these errors were encountered:
@jdknezek is correct - AddCaller is an option for the logger, not the encoder. Be aware that AddCaller is a bit broken at the moment, and may be removed in the future (see #40).
I used to be able to use AddCaller() with JSON output, but since updating Zap, I cannot. Is it ever going to be added back? If yes, when? If no, whats the last version of Zap where it still worked?
Error:
cannot use zap.AddCaller() (type zap.Option) as type zap.JSONOption in argument to zap.NewJSONEncoder
The text was updated successfully, but these errors were encountered: