Replies: 2 comments 4 replies
-
|
Hello @ecerulm, Have you considered subclassing |
Beta Was this translation helpful? Give feedback.
-
|
@ecerulm How about
Sounds good and very similar to my proposal above. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I use
ch.qos.logback.classic.encoder.JsonEncoderI get output like thisFrom the JsonEncoder docs I know I can remove fields by passing
<withXXXX>false</withXXXX>:But what about other transformations, I need my logs to conform to Google GKE Logging agent: special JSON fields so;
severityinstead ofleveltimestamp.secondsinstead oftimestamptimestamp.nanosinstead ofnanosecondsIs that possible with plain logback? or do I need some other library that provides another "JsonEncoder" with those capabilities?
I would appreciate any pointer to "trusted" and "sound" alternative encoder that produce JSON and allows the transformations mentioned.
Beta Was this translation helpful? Give feedback.
All reactions