I'm trying to configure akka.net in an ASP.NET Core 7 Web API.
I added akka.net config into appsettings.json
but the configuration still does not work. What am I doing wrong? How to configure akka.net 1.5.13 in .NET 7?
{
"akka": {
"stdout-loglevel": "DEBUG",
"stdout-logger-class": "Akka.Event.StandardOutLogger",
"log-config-on-start": "off",
"loglevel": "DEBUG",
"loggers": [ "Akka.Logger.NLog.NLogLogger,Akka.Logger.NLog" ],
}
}
Your akka settings should be in the
akka.hocon
file.Better way would be using Akka.Hosting since you're using WebApi.
https://github.com/akkadotnet/Akka.Hosting