How to fix obsolete ILoggerFactory methods?

前端 未结 6 1089
庸人自扰
庸人自扰 2020-12-08 09:09

I upgraded my project to .NET Core 2.2.x and got an obsolete warning regarding the following code - both lines:

public void Configure(IApplicationBuilder app         


        
6条回答
  •  生来不讨喜
    2020-12-08 09:36

    According to the issue opened on GitHub for this, the replacement methods are already being called if you use CreateDefaultBuilder() method in your Program.cs.

    https://github.com/aspnet/Docs/issues/9829

    The only issue I have is that I only turned these on for non-Production environments.. and don't see a way to do so going forward.

提交回复
热议问题