Closed panicou closed 3 years ago
Add NEventSocket.Logging.Logger.Configure(new LoggerFactory());
before your initialize any NEventSocket class
thx that solved it.
This error message reminds you of specifying loggers used by NEventSocket Library. If you want to log NEventSocket with your logger, you may need to consider adding this in ConfigureServices
method in the StartUp.cs
in your .NET core application.
NEventSocket.Logging.Logger.Configure(LoggerFactory.Create(builder => {
builder
.AddConsole();
}));
I created a simple program and got Value cannot be null. (Parameter 'factory') from Microsoft.Extensions.Logging.Abstractions
code as follows :
using System; using System.Reactive.Linq; using System.Threading.Tasks; using NEventSocket; using NEventSocket.FreeSwitch;
namespace ConsoleApp1 { class Program { static async Task Main(string[] args) { await CallTracking();
}
any ideas ??
i am using .net core 3.1