[logback-dev] Encoder field processor

logback developers list logback-dev at qos.ch
Mon Sep 11 16:46:46 CEST 2023


Hello

In extension to
https://github.com/qos-ch/logback/discussions/698#discussioncomment-6849417.
I wanted to propose making an injectable FieldProcesssor bean for Encoder.
Where you can specify how the message will be generated.

By default, data will be processed as it is currently
in ch.qos.logback.classic.encoder.JsonEncoder

And if needed, it could be extended to change behavior.
For example, time could be converted to UTF format.
Or the message could be sent not as a string, but as a JSON object.

Best regards,
Mikl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20230911/71d9292d/attachment.htm>


More information about the logback-dev mailing list