Re: PatternLayout Vs JsonTemplateLayout/JsonLayout Performance Comparision
Ganapathi Vara Prasad <[email protected]> Wed, 16 Nov 2022 16:24:49 +0530
| Newsgroups | gmane.comp.jakarta.log4j.user |
|---|---|
| Message-ID | <CAPwa2fkrGaWj50m4Mfx1m8tpMJgxF4O53VtDfg3339aC4AYtPw@mail.gmail.com> |
Hello Team, Our log4j2 configuration uses *PatternLayout* and we are exploring switching to JsonLayout for simplifying integration with ELK. I am trying to find any performance comparison between pattern and json layouts but couldn't find any. I could find only the JsonTemplateLayout benchmark in the log4j-perf module. I wanted to know: - Is it a reasonable thing to compare the performance of these two layouts? - Are there any existing resources comparing the performance of these two layouts? - What considerations should we make if we switch to JsonTemplateLayout? Thank you for the help. --Ganapati