Improve state machine logging and use StateMachineLogger instead monitor
Update doc and method name