public class LoggingListener extends java.lang.Object implements org.springframework.context.ApplicationListener<AbstractYarnEvent>
ApplicationListener which logs all events
based on AbstractYarnEvent using a log level
set during the construction.| Constructor and Description |
|---|
LoggingListener()
Constructs Logger listener with debug level.
|
LoggingListener(java.lang.String level)
Constructs Logger listener with given level.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(AbstractYarnEvent event) |
public LoggingListener()
public LoggingListener(java.lang.String level)
level - the level stringpublic void onApplicationEvent(AbstractYarnEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<AbstractYarnEvent>