2 from flexbe_core
import EventState, Logger
7 A state that can log a predefined message including an input key
8 to precisely inform the operator about what happened to the behavior.
10 -- text string The message to be logged to the terminal Example: 'Counter value: {}'.
11 -- severity uint8 Type of logging (Logger.REPORT_INFO / WARN / HINT / ERROR)
13 #> data object The data provided to be printed in the message. The exact type depends on the request.
15 <= done Indicates that the message has been logged.
18 def __init__(self, text, severity=Logger.REPORT_HINT):
19 super(LogKeyState, self).
__init__(outcomes=[
'done'],
29 '''Log upon entering the state.'''