Re: Fetch message values in JDBCAppender

2017-10-06 Thread Matt Sicker
Can you post your config and log4j version? On 6 October 2017 at 00:25, gaurav deshpande wrote: > 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 ha

Re: Programmatically added loggers lost due to automatic reconfiguration

2017-10-06 Thread Gary Gregory
Hi Michael, How about using org.apache.logging.log4j.core.config.Configuration.addListener(ConfigurationListener) ? Gary On Fri, Sep 29, 2017 at 6:30 AM, Michael Heinen wrote: > I use Log4j 2.9.1 with the XML configuration. A monitorInterval is > specified in the XML config in order to reco

Re: Null pointer error when writing MapMessage key's value to database

2017-10-06 Thread Gary Gregory
Hi, I think you will get better help if you provide a reproducible JUnit test case or program, on GitHub for example. Whenever you mention an Error or Exception, you should copy it in your message. Gary On Fri, Oct 6, 2017 at 8:48 AM, gaurav9...@gmail.com wrote: > Hi log4j2 users, > > I have

Null pointer error when writing MapMessage key's value to database

2017-10-06 Thread gaurav9...@gmail.com
Hi log4j2 users, I have created a MapMessage with a key-value pair e.g. userName="log4j" I have configured JDBCAppender with But, it gives null pointer error when tried to insert into database table using %K/%map/%MAP and works when you put normal message/literal string. Note: 'userName'

Re: Programmatically added loggers lost due to automatic reconfiguration

2017-10-06 Thread Michael Heinen
Am 29.09.2017 um 16:28 schrieb Christopher Schultz: Michael, On 9/29/17 8:30 AM, Michael Heinen wrote: I use Log4j 2.9.1 with the XML configuration. A monitorInterval is specified in the XML config in order to reconfigure log4j, e.g. for debugging. Besides the XML configuration some loggers and

Re: loggerContext for container shared lib

2017-10-06 Thread billok...@gmail.com
Jira ticket created: LOG4J2-2065 Thanks! Bill On 2017-10-05 06:39, Apache wrote: > 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"