You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Zaidi, Shiraz" <sh...@verizon.com> on 2003/01/02 18:09:52 UTC

Configuring NDC in the DB using JDBCAppender

Hi!,

Using JDBCAppender is there a way to configure NDC contexs to db column . I
have two piece of
information for each client that i want to log as NDC.

I looked at some resources for log4j and found mapping of other fields for
eg. thread, time stamp, severity, meassage etc.

For e.g.
log4j.appender.R.sql=INSERT INTO JDBCTEST (Date, Logger, Priority, Message)
VALUES ('%d', '%c', '%p', '%m') 
I would appreciate any help on this.
Regards,
Shiraz Zaidi