Fwd: Fetch message values in JDBCAppender

2017-10-05 Thread gaurav deshpande
Please help -- Forwarded message -- From: "gaurav deshpande" Date: 06-Oct-2017 02:19 Subject: Fetch message values in JDBCAppender To: Cc: Hi log4j2 users, I have created custom-message implementing 'message' interface. I have also created JDBCAppender which writes values from

Re: Fetch message values in JDBCAppender

2017-10-05 Thread gaurav deshpande
Please help On 06-Oct-2017 02:19, "gaurav deshpande" wrote: > Hi log4j2 users, > > I have created custom-message implementing 'message' interface. > > I have also created JDBCAppender which writes values from above message to > database table. > > But how do I get the value from custom message a

Fetch message values in JDBCAppender

2017-10-05 Thread gaurav deshpande
Hi log4j2 users, I have created custom-message implementing 'message' interface. I have also created JDBCAppender which writes values from above message to database table. But how do I get the value from custom message and store it into databse? I've tried pattern attribute in column tag but th

How to add log level for a specific package in log4j2?

2017-10-05 Thread alwin james
Hi Experts - How can I add log level to a specific package in my project in log4j2 using log4j2.properties file? I am looking forward to something similar to : 'log4j.logger.org.apache.parquet=ERROR' Any help is highly appreciated. Regards, Alwin

Re: loggerContext for container shared lib

2017-10-05 Thread Apache
As I suspected your log shows it using the wrong ClassLoader to locate the configuration. Please create a Jira issue with this information. Ralph > On Oct 5, 2017, at 1:31 AM, "billok...@gmail.com" wrote: > > Thanks for looking into this! > > I do have a log4j2.xml in tomcat/lib, was thinking

Re: loggerContext for container shared lib

2017-10-05 Thread billok...@gmail.com
Thanks for looking into this! I do have a log4j2.xml in tomcat/lib, was thinking that would be used by the common classloader for the commomLib log... I guess the problem is that the commonLib classes were only referenced by the webapp code, thus the loggerContext for the commonLib was created