Re: Unable to locate plugin type for Custom log4j2 Appender

2024-08-14 Thread Volkan Yazıcı
Thanks for bringing this to our attention, Piotr. [See my comments inline below.] On Tue, Aug 13, 2024 at 8:52 PM Piotr P. Karwasz wrote: > There is no special reason why `JsonTemplateLayout` does not support > pretty print. It was simply never implemented. > See my response to Amanda

Re: Unable to locate plugin type for Custom log4j2 Appender

2024-08-14 Thread Volkan Yazıcı
Hello Amanda, See my comments inline below. On Tue, 6 Aug 2024 at 01:05, Amanda Liu wrote: > The reason I want a custom appender is to pretty print the JSON log > objects produced by JsonTemplateLayout, to make it more readable. Would you mind giving us a little bit more context, please? Why do

Re: Unable to locate plugin type for Custom log4j2 Appender

2024-08-13 Thread Piotr P. Karwasz
Hi Amanda, I am crossposting this to d...@logging.apache.org. Please answer to that mailing list. On Tue, 6 Aug 2024 at 01:05, Amanda Liu wrote: > The reason I want a custom appender is to pretty print the JSON log objects > produced by JsonTemplateLayout, to make it more readable. I see in the

Re: Unable to locate plugin type for Custom log4j2 Appender

2024-08-05 Thread Amanda Liu
Hi Piotr, Thank you again for the detailed help! I wanted to ask about an alternative approach to the issue. The reason I want a custom appender is to pretty print the JSON log objects produced by JsonTemplateLayout, to make it more readable. I see in the log4j docs that JSON pretty print is supp

Re: Unable to locate plugin type for Custom log4j2 Appender

2024-08-05 Thread Piotr P. Karwasz
Hi Amanda, On Mon, 5 Aug 2024 at 17:35, Amanda Liu wrote: > Thanks for your response! I am using SBT build tool, and the JDK version is > 17. And yes, I do see a `Log4jPlugins.dat` file in my JAR. I see some > `log4j.core.appender` objects are included in this .dat file, however my new > custo

Re: Unable to locate plugin type for Custom log4j2 Appender

2024-08-05 Thread Amanda Liu
Hi Piotr, Thanks for your response! I am using SBT build tool, and the JDK version is 17. And yes, I do see a `Log4jPlugins.dat` file in my JAR. I see some `log4j.core.appender` objects are included in this .dat file, however my new custom appender I added is not there. Best, Amanda On Mon, Aug

Re: Unable to locate plugin type for Custom log4j2 Appender

2024-08-05 Thread Piotr P. Karwasz
Hi Amanda, On Mon, 5 Aug 2024 at 15:23, Amanda Liu wrote: > Wondering if I'm missing some step of the set-up process for custom > appenders? I thought that adding the appender class and modifying the > log4j.properties file should be sufficient, as the plug-ins docs say > "Serialized plugin listi

Unable to locate plugin type for Custom log4j2 Appender

2024-08-05 Thread Amanda Liu
Hi, I am using log4j2 to set up logging in my project. Currently, I use JsonTemplateLayout and console appender type, which works fine: (from my log4j.properties file:) > ... > appender.console.type = Console > appender.console.name = console > appender.console.target = SYSTEM_ERR > appender.cons