
I noticed that logback-contrib was archived in Git recently. Is there another way to do JSON layout? I looked at the source because profiling showed a lot of GC coming from the SimpleDateFormatter constructor used in JsonLayoutBase and was hoping to find a new version that reused DateTimeFormatter instead. Thanks

Hi Greg, Have you seen JsonEncoder in the ch.qos.logback.classic.encoder package? See also https://logback.qos.ch/manual/encoders.html#JsonEncoder Please let us know how it goes, -- Ceki Gülcü Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch On 5/17/2024 6:47 PM, Gregg, John E. via logback-user wrote:
I noticed that logback-contrib was archived in Git recently.
Is there another way to do JSON layout? I looked at the source because profiling showed a lot of GC coming from the SimpleDateFormatter constructor used in JsonLayoutBase and was hoping to find a new version that reused DateTimeFormatter instead.
Thanks

Logstash-logback-appender is a popular option for JSON output.
On May 17, 2024, at 9:47 AM, Gregg, John E. via logback-user <logback-user@qos.ch> wrote:
I noticed that logback-contrib was archived in Git recently.
Is there another way to do JSON layout? I looked at the source because profiling showed a lot of GC coming from the SimpleDateFormatter constructor used in JsonLayoutBase and was hoping to find a new version that reused DateTimeFormatter instead.
Thanks
_______________________________________________ logback-user mailing list logback-user@qos.ch https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-user
participants (3)
-
Ceki Gulcu
-
Gregg, John E.
-
Will Sargent