Optimize logging for ContextWithFields.
- [ ] call processFieldValue once even write logs with the same context for multiple times.
Do you need someone to implement it? If so, you can assign this task to me. @kevwan
Do you need someone to implement it? If so, you can assign this task to me. @kevwan
Thanks for your contribution!
I've looked at the logic of the function processFieldValue. It is used to process fields when calling log functions like Debug and Info. For the fields stored in the context using the ContextWithFields function, the processFieldValue function is indeed called repeatedly. Is the intention here to call processFieldValue during the call to ContextWithFields for processing, and then save the result, so as to avoid repeated processing later? @kevwan