Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.2.15
-
Fix Version/s: None
-
Component/s: Appenders
-
Labels:None
Description
I wanted to utilize a custom lossyEvaluator to send all buffered events using the smtpappender when the lossyEvaluator triggers(in my case when the discarded event is recent), unfortunately counter to the documentation only the discarded event not the buffer of events is sent.
A minor change to the documentation would resolve confusion without breaking those who rely on only sending the discarded event. No good for my use case, I'll find another way.
If the current behavior is corrected, perhaps change the BufferingAppenderSkeleton.cs (approx line 194 .. 198) LossyEvaluator documentation to:
/// <para>
/// The evaluator will be called for each event that is discarded from this
/// appender. If the evaluator triggers then the discarded event will immediately
/// be sent (see <see cref="M:SendBuffer(new LoggingEvent[]
)"/>).
/// </para>