Class KymaEventEmitTaskRunnerUnitTest.TestListener
- java.lang.Object
-
- de.hybris.platform.kymaintegrationservices.task.KymaEventEmitTaskRunnerUnitTest.TestListener
-
- All Implemented Interfaces:
HybrisLogListener
- Enclosing class:
- KymaEventEmitTaskRunnerUnitTest
public static class KymaEventEmitTaskRunnerUnitTest.TestListener extends java.lang.Object implements HybrisLogListener
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<HybrisLoggingEvent>
events
-
Constructor Summary
Constructors Constructor Description TestListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<HybrisLoggingEvent>
getEvents()
boolean
isEnabledFor(org.apache.log4j.Level level)
Is called before each call oflog
to check if the listener is enabled for given log level.void
log(HybrisLoggingEvent event)
Processes in its specific way given log event.
-
-
-
Field Detail
-
events
public java.util.List<HybrisLoggingEvent> events
-
-
Method Detail
-
getEvents
public java.util.List<HybrisLoggingEvent> getEvents()
-
isEnabledFor
public boolean isEnabledFor(org.apache.log4j.Level level)
Description copied from interface:HybrisLogListener
Is called before each call oflog
to check if the listener is enabled for given log level. If the result is true the call oflog
will be performed afterwards, else not. Here, implement your context dependent log level filter.- Specified by:
isEnabledFor
in interfaceHybrisLogListener
- Parameters:
level
- level of the log which has to be checked for filtering- Returns:
- true, if level is OK and log can be passed to
log
method, false otherwise
-
log
public void log(HybrisLoggingEvent event)
Description copied from interface:HybrisLogListener
Processes in its specific way given log event.- Specified by:
log
in interfaceHybrisLogListener
- Parameters:
event
- the log which will be processed
-
-