lima2.client.Detector.register_transition_logger(logger)

Register a logger function to be notified on FSM transition.

Parameters:
logger

A callback with the following signature.

Example

>>> def on_transition(source, target):
        print(f"transition from {source} to {target}")
>>> fsm.register_transition_logger(on_transition)