Write log messages for state machine transitions