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" ],
}
}
I found a way to configure Akka.net, maybe it's not the best way, but it works.
Put configuration into a separate file:
akka.config. Here is example of the content of this file:When you create the Actor system, you should read and parse this config and provide it to the Actor system:
Useful links: code project