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'
On 2017-10-07 04:27, Matt Sicker wrote:
> 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 val
t;
> On Fri, Oct 6, 2017 at 8:48 AM, [email protected]
> wrote:
>
> > Hi log4j2 users,
> >
> > I have created a MapMessage with a key-value pair
> >
> > e.g. userName="log4j"
> >
> > I have configured JDBCAppender with
> >
&g
Hi Log4j2 users,
I've created custom-message implementing log4j2's 'message' interface like
following tutorial
https://logging.apache.org/log4j/2.x/manual/messages.html
I've defined JDBCAppender in lo4j2.xml which writes values from above message
to database table.
I've tried using conversion-
rTest.xml>
> for example usage (even though that uses the CassandraAppender, the same
> ColumnMapping element works in JdbcAppender).
>
> On 10 October 2017 at 09:03, [email protected]
> wrote:
>
> > Hi Log4j2 users,
> >
> > I've created custom-message i
On 2017-10-11 04:29, Gary Gregory wrote:
> On Tue, Oct 10, 2017 at 12:42 AM, [email protected] > wrote:
>
> >
> >
> > On 2017-10-06 20:32, Gary Gregory wrote:
> > > Hi,
> > >
> > > I think you will get better help if you provide a re
Hi log4j2 users,
I want to create jdbc appender using programmatic configuration.
Please provide the programmatic configuration if you already have or guide me
to create it.
P.S. I am able to create JDBCAppender using xml configuration
Thanks
-
On 2017-11-30 23:07, Matt Sicker wrote:
> You should be able to create one the same way you create any other appender
> using programmatic configuration.
>
> On 30 November 2017 at 06:36, [email protected]
> wrote:
>
> > Hi log4j2 users,
> >
> >
On 2017-12-01 14:34, "[email protected]" wrote:
>
>
> On 2017-11-30 23:07, Matt Sicker wrote:
> > You should be able to create one the same way you create any other appender
> > using programmatic configuration.
> >
> > On 30 November 201
Hi,
My project uses custom-connection pool and wants to control connection close.
But log4j2's JDBC appender uses its own Closer.close() method call in the
JdbcDatabaseManager.java
Is there any way to get the control for close() method to my project code
instead of log4j2?
Will it be okay to
10 matches
Mail list logo