|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.file.TestLinkRewriter.ExpectErrorLogHandler
public class TestLinkRewriter.ExpectErrorLogHandler
A log handler which detects whether an error message containing a given string is written to the log.
Constructor Summary | |
---|---|
TestLinkRewriter.ExpectErrorLogHandler(String text)
Creates a new instance. |
Method Summary | |
---|---|
void |
handleLogEvent(org.apache.log4j.spi.LoggingEvent event)
This method will be called when log events are triggered. |
boolean |
isTriggered()
Returns true if the text has been detected in log messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestLinkRewriter.ExpectErrorLogHandler(String text)
text
- the text to detect in log messagesMethod Detail |
---|
public void handleLogEvent(org.apache.log4j.spi.LoggingEvent event)
handleLogEvent
in interface I_CmsLogHandler
event
- the log eventpublic boolean isTriggered()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |