title: Logging Mongo driver queries performance in a text file
body: <p>I'm working on a university project and my instructor asked us to log everything include queries and the execution time. So I tried hard to find if there is any available solution but I didn't found. </p>
  
  <p>Edit: My project is a web api with Asp.net core and mongo db ( latest mongo driver)</p>