You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same here. The issue, I think, is because ApiOperationBase has static Logger instance of type Microsoft.Extensions.Logging.ILogger, that is invoked in the ApiOperationBase constructor. But in case of .Net Core xx there's no way to pass ILogger reference (service?) to it...
Just for other people, I have compiled the code for Core 3.1. The change required is in the LogFactory.cs GetLog method :
return new LoggerFactory().CreateLogger(classType.FullName);
That have seems to do the trick. No more error and things seem to work as before.
Hope this helps someone.
Hi
I got this exception while running a sample with ASP.Net Core 3.1
: Method not found: 'Microsoft.Extensions.Logging.ILoggerFactory Microsoft.Extensions.Logging.DebugLoggerFactoryExtensions.AddDebug(Microsoft.Extensions.Logging.ILoggerFactory, Microsoft.Extensions.Logging.LogLevel)'.
The text was updated successfully, but these errors were encountered: