title: Zend Framework Logger : Zend DB Logger
body: <p>I am using Zend logger as following :-</p>
  
  <pre><code>$columnMapping = array('message' =&gt; 'message', 'created_at' =&gt; 'timestamp');
  $writer = new Zend_Log_Writer_Db($dbAdapater, 'log', $columnMapping);
  $logger = new Zend_Log($writer);
  $logger-&gt;info('Sample log data');
  </code></pre>
  
  <p>Now if I want to bind more fields which are not defined as default (as we can see in <strong>$columnMapping</strong> array), e.g. user_name, user_type etc, then what should I do?</p>
  
  <p>To be simple I want to achieve following:-</p>
  
  <pre><code>$columnMapping = array('user_defined_field1' =&gt; 'user_defined_val_1');
  $writer = new Zend_Log_Writer_Db($dbAdapater, 'log', $columnMapping);
  $logger = new Zend_Log($writer);
  $logger-&gt;info('Sample log data');
  </code></pre>
  
  <p>Please suggest.</p>