Lookup the current MDC 'RegexEventEvaluator' to determine the regular
expression context that should be applied to determine if the logging
event should be considered a triggering event.
public boolean isTriggeringEvent(org.apache.log4j.spi.LoggingEvent event)
Lookup the current MDC 'RegexEventEvaluator' to determine the regular
expression context that should be applied to determine if the logging
event should be considered a triggering event. If there is no value
for the 'RegexEventEvaluator' key then no comparision is made.
Specified by:
isTriggeringEvent in interface org.apache.log4j.spi.TriggeringEventEvaluator
Parameters:
event - the logging event to check
Returns:
true if MDC{RegexEventEvaluator} is a regex expression that
matches the event.getRenderedMessage(), false otherwise.