title: Zend Enable SQL Query logging
body: <p>I am using this to retrieve the database connection atm.</p>
  
  <pre><code>    $db = Zend_Db_Table::getDefaultAdapter();
  </code></pre>
  
  <p>I do set this up in my config like this:</p>
  
  <pre><code>resources.db.adapter = pdo_mysql
  resources.db.isDefaultTableAdapter = true
  resources.db.params.host = localhost
  resources.db.params.username = root
  resources.db.params.password = password
  resources.db.params.dbname = db
  resources.db.params.profiler.enabled = true
  resources.db.params.profiler.class = Zend_Db_Profiler
  </code></pre>
  
  <p>I would like to output everything to a sql.log for example. Is this possible to apply on the default adapter? for example through the settings, so I can ignore it in production environment?</p>
  
  <p>Much appriciated.</p>
  
  <p>I did look at: <a href="https://stackoverflow.com/questions/2894077/how-to-enable-sql-output-to-log-file-with-zend-db">How to enable SQL output to log file with Zend_Db?</a> but it didn't seem to cover my issue.</p>
  
  <p>/Marcus</p>