Interface TriggeringEventEvaluator


public interface TriggeringEventEvaluator
Implementors decide when to perform an appender specific action.

For example, the org.apache.log4j.net.SMTPAppender sends an email when the isTriggeringEvent(LoggingEvent) method returns true and adds the event to an internal buffer when the returned result is false.

Since:
version 1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tests if this the triggering event.
  • Method Details

    • isTriggeringEvent

      boolean isTriggeringEvent(LoggingEvent event)
      Tests if this the triggering event.
      Parameters:
      event - The vent to test.
      Returns:
      Whether this the triggering event.