[dependencies] Remove unmaintained dependency "zap-logfmt" - #54
Conversation
Signed-off-by: Liran Funaro <liran.funaro@gmail.com>
1eb6551 to
07cb530
Compare
|
Pass all Fabric unit tests: https://github.com/liran-funaro/fabric/actions/runs/28320919435 |
|
@pfi79 , friendly ping on this whenever you get a chance to review. Thanks! |
|
I'll try to criticize your PR.:
|
|
@pfi79 Thanks for the review.
Let me know how you'd like to proceed! |
| MessageKey: "", // disable | ||
| LevelKey: "", // disable | ||
| TimeKey: "", // disable | ||
| NameKey: "", // disable | ||
| CallerKey: "", // disable | ||
| StacktraceKey: "", // disable | ||
| LineEnding: "\n", | ||
| EncodeDuration: zapcore.StringDurationEncoder, | ||
| EncodeTime: func(t time.Time, enc zapcore.PrimitiveArrayEncoder) { | ||
| enc.AppendString(t.Format("2006-01-02T15:04:05.999Z07:00")) | ||
| }, |
There was a problem hiding this comment.
Why did you delete these settings? they were before the addition of the zap-logfmt dependency.
There was a problem hiding this comment.
They are hard-coded in the new implementation. This is because we only have one use case for this module.
The original one was an external lib; thus, it had to be generic.
To make decisions on your change, I want to figure out how |
logfmt is similar to JSON, but the fields are presented in the logfmt format instead of JSON |
I'm sorry, but I don't understand. |
|
|
@pfi79 Is there any additional action item for me regarding this PR? |
pfi79
left a comment
There was a problem hiding this comment.
Thank you for your hard work.
The package
github.com/sykesm/zap-logfmtis no longer maintained (last commit was 5 years ago).This commit removes this dependency.
github.com/sykesm/zap-logfmt#53