How to log state transitions in Stateless (.NET state machine library)
<p>I would like to have a log in database of state transitions of my workflow.</p>

<p>Where is the best place to trigger logging with <a href="https://github.com/dotnet-state-machine/stateless" rel="noreferrer">Stateless</a>? Should it be set-up for each State configuration :</p>

<pre><code>phoneCall.Configure(State.Connected)
    .OnEntry(() =&gt; StartCallTimer())
    .OnEntry(() =&gt; Log());
</code></pre>

<p>or there is some way to define it centrally for whole workflow once?</p>

<p>Any other input in this regard is welcome.</p>