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 Anindya Bandyopadhyay <an...@gmail.com> on 2005/06/23 14:53:26 UTC
passing value to new column using jdbcappender
Hi All,
I'm using log4j JDBCAppender in a web application to log into database. Now
I require one new functionality where I need to put the username in log
table. I've added a new column in log table called "user" where I'd like to
put the username. The username will be obtained from session attribute. How
to pass this username to JDBCAppender and insert into database? Is there any
way to get the functionality?
Thanks,
Anindya