Closed ceyonur closed 5 days ago
I think it would be nicer to:
I think it would be nicer to:
* Apply the fix to the logger itself, where all string / variable length outputs are truncated at a certain limit * Make the limit configurable and apply a default
I looked at the code, unfortunately we don't own JSON & Logfmt handlers, and ReplaceAttr
for those handlers do not take any usable parameters so we can start truncating them in replace functions (builtinReplace
). The closest (and probably that does not require a huge refactor) place is the upstream's logger's Write
.
I can create a PR to upstream to get their feedbacks on this.
Why this should be merged
How this works
How this was tested
How is this documented