From John.E.Gregg at wellsfargo.com Fri May 17 16:47:12 2024 From: John.E.Gregg at wellsfargo.com (Gregg, John E.) Date: Fri, 17 May 2024 16:47:12 +0000 Subject: [logback-user] JSON layout without logback-contrib? Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ceki at qos.ch Fri May 17 17:50:42 2024 From: ceki at qos.ch (Ceki Gulcu) Date: Fri, 17 May 2024 19:50:42 +0200 Subject: [logback-user] JSON layout without logback-contrib? In-Reply-To: References: Message-ID: <2b440fe5-0b51-43d5-a972-8ee51f004934@qos.ch> 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 > >   From will.sargent at gmail.com Fri May 17 17:52:28 2024 From: will.sargent at gmail.com (Will Sargent) Date: Fri, 17 May 2024 10:52:28 -0700 Subject: [logback-user] JSON layout without logback-contrib? In-Reply-To: References: Message-ID: <453638ED-C8CD-4B62-91AF-153DFBC22BC7@gmail.com> Logstash-logback-appender is a popular option for JSON output. > On May 17, 2024, at 9:47 AM, 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 > > _______________________________________________ > logback-user mailing list > logback-user at qos.ch > https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-user -------------- next part -------------- An HTML attachment was scrubbed... URL: