org.springframework.data.hadoop.store.event
Class LoggingListener
java.lang.Object
org.springframework.data.hadoop.store.event.LoggingListener
- All Implemented Interfaces:
- EventListener, ApplicationListener<AbstractStoreEvent>
public class LoggingListener
- extends Object
- implements ApplicationListener<AbstractStoreEvent>
Simple ApplicationListener which logs all events based on
AbstractStoreEvent using a log level set during the construction.
- Author:
- Janne Valkealahti
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
onApplicationEvent
public void onApplicationEvent(AbstractStoreEvent event)
- Specified by:
onApplicationEvent in interface ApplicationListener<AbstractStoreEvent>