Class LoggingListener
java.lang.Object
org.springframework.statemachine.event.LoggingListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<StateMachineEvent>
public class LoggingListener
extends Object
implements org.springframework.context.ApplicationListener<StateMachineEvent>
Simple
ApplicationListener
which logs all events
based on StateMachineEvent
using a log level
set during the construction.-
Constructor Summary
ConstructorDescriptionConstructs Logger listener with debug level.LoggingListener
(String level) Constructs Logger listener with given level. -
Method Summary
-
Constructor Details
-
LoggingListener
public LoggingListener()Constructs Logger listener with debug level. -
LoggingListener
Constructs Logger listener with given level.- Parameters:
level
- the level string
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<StateMachineEvent>
-