Suppress SQL Queries logging in Entity Framework core : <p>I have a console .net core app that uses entity framework core.
The app uses logging framework to write to file and console:</p>

<pre><code> serviceProvider = new ServiceCollection()
        .AddLogging()
        .AddDbContext&lt;DataStoreContext&gt;(options =&gt;
            options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")))
        .BuildServiceProvider();

    //configure console logging
    serviceProvider.GetService&lt;ILoggerFactory&gt;()
        .AddConsole(LogLevel.Debug)
        .AddSerilog();

    Log.Logger = new LoggerConfiguration()
        .MinimumLevel.Information()
        .WriteTo.RollingFile(Path.Combine(Directory.GetCurrentDirectory(), "logs/vcibot-{Date}.txt"))
        .WriteTo.RollingFile(Path.Combine(Directory.GetCurrentDirectory(), "logs/vcibot-errors-{Date}.txt"), LogEventLevel.Error)
        .CreateLogger();

    logger = serviceProvider.GetService&lt;ILoggerFactory&gt;()
        .CreateLogger&lt;Program&gt;();
</code></pre>

<p>Min Level for file output is set to Information. But with this setup output also contains SQL queries, here is the example:</p>

<blockquote>
  <p>2017-02-06 10:31:38.282 -08:00 [Information] Executed DbCommand (0ms)
  [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT
  [f].[BuildIdentifier], [f].[Branch], [f].[BuildDate],
  [f].[StaticAssetSizeInKb] FROM [FileSizesHistoryEntries] AS [f]</p>
</blockquote>

<p>Is there a way to disable the SQL queries logging  (log them only in Debug log level)</p>
