These are chat archives for akkadotnet/akka.net

29th
Oct 2017
sureshmahtan
@sureshmahtan
Oct 29 2017 08:18

Not log into a file. I have the config with
Config myConfig = @"akka.loglevel = DEBUG
akka.loggers=[""Akka.Logger.NLog.NLogLogger, Akka.Logger.NLog""]";

Akka.Logger.NLog nuget is anstalled and NLog.config file is added.

Still I'm getting the error
"Error while creating actor instance of type Akka.Logger.NLog.NLogLogger with 0 args"
Logger [Akka.Logger.NLog.NLogLogger, Akka.Logger.NLog] specified in config cannot be loaded: System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.

--- End of inner exception stack trace ---

at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)

at System.Threading.Tasks.Task`1.get_Result()

at Akka.Event.LoggingBus.AddLogger(ActorSystemImpl system, Type loggerType, LogLevel logLevel, String loggingBusName, TimeSpan timeout)

at Akka.Event.LoggingBus.StartDefaultLoggers(ActorSystemImpl system)

---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---

If anyone could help me to fix this issue.

Aaron Stannard
@Aaronontheweb
Oct 29 2017 16:31
Akka.Persistence.SqlServer 1.3.2 is now live on NuGet: https://www.nuget.org/packages/Akka.Persistence.SqlServer/1.3.2
@sureshmahtan what version of the packages are you using?
MiiMeldon
@MiiMeldon
Oct 29 2017 17:42
Does every actor instance have its own unique mailbox for its own messages?
sureshmahtan
@sureshmahtan
Oct 29 2017 18:54
akka version 1.2.0
Akka.Logger.NLog.0.7.0
Bartosz Sypytkowski
@Horusiath
Oct 29 2017 18:57
@MiiMeldon yes. This can be tweaked, but your better know what you're doing then.
MiiMeldon
@MiiMeldon
Oct 29 2017 18:58
@Horusiath Ok. So by default each IActorRef instance has its own mailbox, correct?
jalchr
@jalchr
Oct 29 2017 19:30
I'm trying to figure out how can I use a Persistent Actor temporarily. And by that I mean, I want to use all its recovery features, but once I'm done with it, I want to "clean" its state (journal) from database.
Something like
Command<Shutdown>(x =>
{
// What to do here ? DeleteMessages  ?
});