title: how to pass java variable value into sql statement entry in log4j.properties file
body: <p>I am using a JDBC appender in which I wrote a sql query
  which logs into the table with table structure as shown</p>
  
  <pre><code>Column name  Null  Type
  ------------ ----- -----------------
  DATED              DATE
  LEVEL1             VARCHAR2(10)
  MESSAGE            VARCHAR2(1000)
  TIME               TIMESTAMP(5)
  LOGGER             VARCHAR2(25)
  MODULE             VARCHAR2(75)
  USER1              VARCHAR2(35)
  OBJ_ID             VARCHAR2(25)
  </code></pre>
  
  <p>and the entry in my log4j.properties file for the query is </p>
  
  <p><code>log4j.appender.DB.sql=INSERT INTO LOGS VALUES('%d{dd-MMM-yy}','%p','%m','%d{dd-MMM-yy HH:mm:ss}','%C','%t','username','obid')</code></p>
  
  <p>I want the <code>USER</code> and <code>OBJ_ID</code> column values to be passed through a java file into log4j.properties.</p>
  
  <p>How can this be done?</p>