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 Details

    • LoggingListener

      public LoggingListener()
      Constructs Logger listener with debug level.
    • LoggingListener

      public LoggingListener(String level)
      Constructs Logger listener with given level.
      Parameters:
      level - the level string
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(StateMachineEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<StateMachineEvent>