I would like to have a log in database of state transitions of my workflow.
Where is the best place to trigger logging with Stateless? Should it be set-up for each State configuration :
phoneCall.Configure(State.Connected)
.OnEntry(() => StartCallTimer())
.OnEntry(() => Log());
or there is some way to define it centrally for whole workflow once?
Any other input in this regard is welcome.