These are chat archives for akkadotnet/akka.net

21st
Feb 2017
Sean Farrow
@SeanFarrow
Feb 21 2017 12:03
Is thee a way of logging all messages that flow to/from and actor without having to add a whole bunch of log statements. I'm trying to do this for auditability.
Arjen Smits
@Danthar
Feb 21 2017 12:21
@SeanFarrow you could create your own base class actor. Easiest actor type to use for that if you want to wrap message handling is the UnTypedActor. Because it only exposes the OnReceive method. So wrapping that and providing your own OnReceive handler is easy
If you want to use the ReceiveActor as a baseclass then you'd have more work.
The most simple solution would be to use function currying
so you'd simply wrap your Receive delegate in another function, that applies the logging
Receive<string>(m => MyLoggingWrapper(m, MyActualMessageHandlerFunc))
something like that
Sean Farrow
@SeanFarrow
Feb 21 2017 12:33
Given I'm using Receive<string> how can I receive a typed message. I'm looking to log the message.
Ricky Blankenaufulland
@ZoolWay
Feb 21 2017 12:41
@SeanFarrow You mean how to handle something like Receive<MyComplexCustomMessageType>? You really want to log the complete message? Might be interesting to use persistance for that. Nevertheless you need to serialize the complete message to a format which you want to use for logging/storage
Jose Carlos Marquez
@oeaoaueaa
Feb 21 2017 12:47
@Aaronontheweb , sorry about the late response, yes we have now changed it to be heartbeat-interval=10s, acceptable-heartbeat-pause=20s and threshold=12
Sean Farrow
@SeanFarrow
Feb 21 2017 12:57

+

All Conversations

Activate or click this element to toggle the profile menu

Search

Favourites

People

Communities

akkadotnet

Add a room

akka.net

@

Leave

Hide

cake-build/cake

@

Leave

Hide

AkkaStreams

@

Leave

Hide

aurelia/Discuss

@

Leave

Hide

fsharp/FAKE

59

Leave

Hide

Marc Piechura

Hide

Adam

Hide

Your Suggestions

validation

dotnet-core

akkadotnet.github.com

akkadotnet/Wire

FreeCodeCamp/FreeCodeCamp

developers

gitterHQ/gitter

gitterHQ/nodejs

material-design-lite

Perfect

pydata/pandas

scala-js/scala-js

Create room Serilog, my preferred framework of choice takes care of the serialization.

Nick Cuthbert
@ncthbrt
Feb 21 2017 15:01
?
Aaron Stannard
@Aaronontheweb
Feb 21 2017 16:46
@ncthbrt btw
if you need a new release of the Akka.Quartz package
to go out onto NuGet
pull dev into master on the central repo