Class TestLogListener
java.lang.Object
de.hybris.platform.testframework.log.TestLogListener
- All Implemented Interfaces:
HybrisLogListener
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach()voiddetach()booleanisEnabledFor(org.apache.log4j.Level level) Is called before each call oflogto check if the listener is enabled for given log level.voidlog(HybrisLoggingEvent event) Processes in its specific way given log event.
-
Constructor Details
-
TestLogListener
public TestLogListener()
-
-
Method Details
-
loggingEvents
-
isEnabledFor
public boolean isEnabledFor(org.apache.log4j.Level level) Description copied from interface:HybrisLogListenerIs called before each call oflogto check if the listener is enabled for given log level. If the result is true the call oflogwill be performed afterwards, else not. Here, implement your context dependent log level filter.- Specified by:
isEnabledForin 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
logmethod, false otherwise
-
log
Description copied from interface:HybrisLogListenerProcesses in its specific way given log event.- Specified by:
login interfaceHybrisLogListener- Parameters:
event- the log which will be processed
-
attach
public void attach() -
detach
public void detach()
-