The number of logging events delivered in this e-mail depend on the value of BufferSize option. The SMTPAppender
keeps only the last BufferSize
logging events in its cyclic buffer. This keeps memory requirements at a reasonable level while still delivering useful application context.
There are three ways in which the trigger is fired, resulting in an email containing the buffered events:
* DEFAULT BEHAVIOR: relies on an internal TriggeringEventEvaluator class that triggers the sending of an email when an event with a severity of ERROR or greater is received.
* Set the 'evaluatorClass' param to the fully qualified class name of a class you have written that implements the TriggeringEventEvaluator interface.
* Set the 'expression' param to a valid (infix) expression supported by ExpressionRule and ExpressionRule's supported operators and operands. As events are received, events are evaluated against the expression rule. An event that causes the rule to evaluate to true triggers the email send. If both evaluatorClass and expression params are set, the evaluatorClass is used. See org.apache.log4j.rule.ExpressionRule for a more information.
@author Ceki Gülcü @since 1.0
|
|
|
|
|
|
|
|
|
|
|
|