title: How do I log my queries in MongoDB C# Driver 2.0?
body: <p>Just upgraded my application to the latest stable MongoDB C# Driver 2.0.</p>
  
  <p>During the migration, basic functionality has been broken and even the simplest query like: <code>this.collection.Find(e =&gt; e.Id == id).SingleOrDefaultAsync()</code> doesn't return the correct data.</p>
  
  <p>Checked the class mappings and conventions but I would like to see the output query in order to properly identify the issue.</p>
  
  <p><strong>So, how should it be done on the <code>MongoClient</code> side?</strong></p>
  
  <p>Setting profiling on the database level is possible but not a good solution since we have several applications and developers using the database.</p>
  
  <p>My application is currently using <code>Ninject.Extensions.Logging</code> and <code>log4net</code> in the UI, business and EF data access.</p>