These are chat archives for akkadotnet/akka.net

8th
Apr 2017
Jeff Pang
@jeff-pang
Apr 08 2017 07:29
hi, i am new to akka.net, so a few things I want to try out not sure if you guys have any idea on.
  1. I understand there are no consensus systems built into Akka, so is there any library or systems I can explore?
  2. I am assuming no for the preceding qns (but I could be wrong), so that leaves me with implementing my own, so do I write my own heartbeat or is there a way to leverage akka's heartbeat in akka.remote
Arsene Tochemey GANDOTE
@Tochemey
Apr 08 2017 13:56
Hello Geeks. Please how far with the AkkaStream?
Any tentative date?
Marc Piechura
@marcpiechura
Apr 08 2017 14:20
@Tochemey Reactive.Streams was RTM-ed yesterday so we will upgrade our version and also release Akka.Streams as stable with 1.2
Arsene Tochemey GANDOTE
@Tochemey
Apr 08 2017 14:40
@Silv3rcircl3 Beautiful
@Silv3rcircl3 Can I use the RTM in production? also do you guys have some samples that help someone get started with the implementation of Network based protocol?
Marc Piechura
@marcpiechura
Apr 08 2017 14:54
Yup, it's already in production in some other projects. I think there is a example in the cookbook in the docs
Arsene Tochemey GANDOTE
@Tochemey
Apr 08 2017 14:55
Ok cool
Franky Ostyn
@FOstyn
Apr 08 2017 15:29

Hi all,
a NLog question: with NLog is it possible to define 2 or more different logfiles.
<rules>
<logger name="AkkaLog" minlevel="Debug" writeTo="logfile1" />
<logger name="myLogFile" minlevel="Debug" writeTo="logfile2" />
</rules>

Using the same config file for Akka doesn't work, nothing is logged from Akka, I think Akka expects the name = "" like:
<rules>
<logger name="
" minlevel="Debug" writeTo="logfile1" />
</rules>

Is it possible to define in HOCON the name of the logfile for Akka ?

--> No one knows how to define a specific Akka.NET logfile instead of the common used "*" with NLog ?

Arjen Smits
@Danthar
Apr 08 2017 15:54
@FOstyn logger config is generally outside of akka.
meaing you can simply define different log files in nlog. And target them as you would normally do
only thing is, not sure how you that works with nlog, but you might have to go beyond the logger abstraction akka.net offers
Franky Ostyn
@FOstyn
Apr 08 2017 17:08
Outside of Akka ? When using the Akka.Logger.Nlog you have to define a NLog.config, that's for me not 'outside of Akka'.
The NLog-Akka problem is that you must define a logger name= "<multiply-symbol>" for Akka, otherwise nothing will be logged for Akka.
This is annoying if you must write specific log data (with NLog) to another file and only to that file.
Because NLog writes always all data to that "<multiply-symbol>" log file it's all mixed up in that logfile.
It would be better if we could define a specific log file for Akka, that was the question. Is this possible and if so, can that be defined in HOCON ?
Damian Reeves
@DamianReeves
Apr 08 2017 18:12
I'm trying to test an EventStream subscription in a TestKit test however I never get the message from the EventStream despite being subscribed
Damian Reeves
@DamianReeves
Apr 08 2017 18:18
Are there any gotchas when testing EventStream?
Arjen Smits
@Danthar
Apr 08 2017 21:44
@FOstyn Ah, i misunderstood then. NLog does not allow you to target different logging sinks ? Most logging frameworks allow you to write logs to a different sink, based on the 'context' where the context being the namespace or type where the logging is coming from.
I can imagine NLog allows similar behavior. But like i said earlier. I might have to go beyond the default logging abstraction akka.net offers. So in other words. Instead of using Context.GetLogger() to get the logging abstraction, you would have to call NLog directly.