title: Log all linq queries executed on DbContext - C#
body: <p>Is there a simple way to log all linq queries executed in an application?</p>
  
  <p>I am currently using code first entity framework with a <code>DbContext</code> instead of the older <code>DataBaseContext</code>.I know for a fact that the <code>DataBaseContext</code> class has a <code>Log</code> property, but i do not know if there is something like the log property for the <code>DbContext</code>.</p>