I've been keeping small amounts of state in my state machine's state types (i.e. time it was activated). I'd like to be able to access this data in the logger to print it out.
So far I have been unable to figure out how to do this. I've tried log_state_change and log_event for an on_entry event but haven't figured it out.
It seems this results from the type signature and that the actual state objects could be available.
Expected Behavior
I've been keeping small amounts of state in my state machine's state types (i.e. time it was activated). I'd like to be able to access this data in the logger to print it out.
So far I have been unable to figure out how to do this. I've tried
log_state_change
andlog_event
for anon_entry
event but haven't figured it out.It seems this results from the type signature and that the actual state objects could be available.
https://github.com/boost-ext/sml/blob/0387da02f243c29e7b5e2810b9e556cde0c75a85/include/boost/sml.hpp#L2491-L2498
Actual Behavior
No way to log
state
objects.