- All Implemented Interfaces:
- org.apache.log4j.spi.TriggeringEventEvaluator
public class TriggerEvaluator
extends Object
implements org.apache.log4j.spi.TriggeringEventEvaluator
This class is used by log4j to decide when the SMTPAppender should send an email.
If isTriggeringEvent returns false the event is written to the buffer until the
buffer limit is reached.
We use it for the printer.ticket and printer.ticket.line loggers to allow
sending ticket data along with line data through email.
This class must be referenced in the log4j properties file as EvaluatorClass.
If an SMTP appender does not use an EvaluatorClass only errors above ERROR level
are propagated.
- Author:
- hans