Package org.hibernate.testing.logger
Class TriggerOnPrefixLogListener
- java.lang.Object
-
- org.hibernate.testing.logger.TriggerOnPrefixLogListener
-
- All Implemented Interfaces:
LogListener
,Triggerable
public final class TriggerOnPrefixLogListener extends Object implements LogListener, Triggerable
-
-
Constructor Summary
Constructors Constructor Description TriggerOnPrefixLogListener(String expectedPrefix)
TriggerOnPrefixLogListener(Set<String> expectedPrefixes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
loggedEvent(org.jboss.logging.Logger.Level level, String renderedMessage, Throwable thrown)
void
reset()
String
triggerMessage()
List<String>
triggerMessages()
boolean
wasTriggered()
-
-
-
Method Detail
-
loggedEvent
public void loggedEvent(org.jboss.logging.Logger.Level level, String renderedMessage, Throwable thrown)
- Specified by:
loggedEvent
in interfaceLogListener
-
triggerMessage
public String triggerMessage()
- Specified by:
triggerMessage
in interfaceTriggerable
-
triggerMessages
public List<String> triggerMessages()
- Specified by:
triggerMessages
in interfaceTriggerable
-
wasTriggered
public boolean wasTriggered()
- Specified by:
wasTriggered
in interfaceTriggerable
-
reset
public void reset()
- Specified by:
reset
in interfaceTriggerable
-
-