title: How to log SQL generated by EF using log4net
body: <p>In my web project I'm using <strong>EF6</strong> and I'd like to log generated SQL for debugging purpose.</p>
  
  <p>I'm also using log4net to handle logs, so I'm looking for a way to integrate them together.</p>
  
  <p>What's the correct way to achieve this?</p>