Replies: 2 comments
-
etcd uses Zap, so you might want to ask this over at https://github.com/uber-go/zap |
Beta Was this translation helpful? Give feedback.
-
@ankitg-03 from what I see etcd is not configured to change the default time format that is being passed in const layout = "2006-01-02T15:04:05.999+07:00" EncoderConfig: zapcore.EncoderConfig{ where you set EncodeTime as in the snippet above. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Could you please help to change the timestamp format as below.
Currently we get ETCD timestamps in the the following format - 2022-11-18T07:16:40.169Z but, our required format is 2022-11-18T07:15:24.722+02:00
Is there is a way to get timestamp in ETCD log in the required format 2022-11-18T07:15:24.722+02:00 ("yyyy-MM-dd'T'HH:mm:ss.SSSxxx") through some ETCD configuration?
Beta Was this translation helpful? Give feedback.
All reactions