title: Use logback to log SQL parameters in Spring JdbcTemplate
body: <p>I'm using <em>Logback</em> with <em>Spring JdbcTemplate</em> to log my SQL queries. My configurations contains next line:</p>
  
  <pre><code>&lt;logger name="org.springframework.jdbc.core.JdbcTemplate" level="DEBUG" /&gt;
  </code></pre>
  
  <p>But this logs only query with wildcards <code>?</code> without list of parameters.</p>
  
  <p>Here on SO I found a few answers how to achieve parameters logging with <em>log4j</em>. But I don't want to switch to <em>log4j</em>.</p>
  
  <p>So how can I receive parameters list for <em>JdbcTemplate</em> with <em>Logback</em>?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Actually, I'm using <code>NamedParameterJdbcTemplate</code>, if it matters.</p>