title: Suppress Entity Framework Core Queries logging for an specific query or context
body: <p>I have an ASP core MVC app and inside it a background task that run a query every 5 seconds, some things like this:</p>
  <pre><code>var dbContext = serviceProvider.GetRequiredService&lt;ApplicationDbContext&gt;();
  
  var files = await dbContext.Set&lt;File&gt;().Where(...).ToListAsync();
  </code></pre>
  <p>The problem is it fills my output with this log:</p>
  <pre><code>info: Microsoft.EntityFrameworkCore.Database.Command[20101]
        Executed DbCommand (1ms) ...
  </code></pre>
  <p>I know it's possible to change the global DB Context settings or log level to make ef log completely silent but I'm searching for a way to suppress log query of <strong>only</strong> this command or db context.</p>