站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 common API Documentation 英文版文档

RegexEventEvaluator (JBoss/Common API) - JBoss 3.2.7 common API Documentation 英文版文档


org.jboss.logging.appender
Class RegexEventEvaluator

java.lang.Object
  extended byorg.jboss.logging.appender.RegexEventEvaluator
All Implemented Interfaces:
org.apache.log4j.spi.TriggeringEventEvaluator

public class RegexEventEvaluator
extends Object
implements org.apache.log4j.spi.TriggeringEventEvaluator

An implementation of the log4j TriggeringEventEvaluator that matches the LoggingEvent message against the MDB{RegexEventEvaluator} regular expression.

Version:
$Revision: 1.1.4.2 $
Author:
Scott.Stark@jboss.org

Constructor Summary
RegexEventEvaluator()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexEventEvaluator

public RegexEventEvaluator()
Method Detail

isTriggeringEvent

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.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.