I have log4j jdbcappender configuration as follows:
<appender name="jdbcAppender" class="bean.CustomJdbcAppender">
<param name="jndiDataSource" value="myDS"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="INSERT INTO log_table (level, loc, msg) VALUES ( '%p','%C;%L', '%m' )"/>
</layout>
How can I pass username to the database table from log4j?
Thanks