title: 'ILoggerFactory' does not contain a definition for 'AddConsole'
body: <pre><code>private ILoggerFactory ConfigureLogging(ILoggerFactory factory)
  {
        factory.AddConsole();
        return factory;
  }
  </code></pre>
  <p>I have found the piece of  code above on <a href="https://github.com/foxbot/DiscordBotBase/blob/csharp/src/DiscordBot/Services/LogService.cs" rel="noreferrer">Github</a>. It gives the following error:</p>
  <blockquote>
  <p>'ILoggerFactory' does not contain a definition for 'AddConsole' and the best extension method overload 'ConsoleLoggerExtensions.AddConsole(ILoggingBuilder)' requires a receiver of type 'ILoggingBuilder'</p>
  </blockquote>
  <p>I'm using NET Core 3.0 and I have the following NuGet packages installed.</p>
  <pre><code>&lt;PackageReference Include=&quot;Discord.Net&quot; Version=&quot;2.1.1&quot; /&gt;
  &lt;PackageReference Include=&quot;Discord.Net.Commands&quot; Version=&quot;2.1.1&quot; /&gt;
  &lt;PackageReference Include=&quot;Discord.Net.WebSocket&quot; Version=&quot;2.1.1&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration&quot; Version=&quot;3.0.0&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration.Json&quot; Version=&quot;3.0.0&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.Extensions.DependencyInjection&quot; Version=&quot;3.0.0&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.Extensions.Logging&quot; Version=&quot;3.0.0&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.Extensions.Logging.Console&quot; Version=&quot;3.0.0&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.Extensions.Logging.Debug&quot; Version=&quot;3.0.0&quot; /&gt;
  &lt;PackageReference Include=&quot;Microsoft.Extensions.Options.ConfigurationExtensions&quot; Version=&quot;3.0.0&quot; /&gt;
  </code></pre>
  <p>Why do I get that <code>ILoggerFactory </code> does not have the method <code>AddConsole()</code>? How can I fix this?</p>