title: How can I log queries in Sqlite3 with Python?
body: <p>I'm using Sqlite3 database in my Python application and query it using parameters substitution.<br/>
  For example:</p>
  
  <pre><code>cursor.execute('SELECT * FROM table WHERE id &gt; ?', (10,))
  </code></pre>
  
  <p>Some queries do not return results properly and I would like to log them and try to query sqlite manually.<br/>
  How can I log these queries with parameters instead of question marks?</p>