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

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

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

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

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