FreeAndNil opened a new issue, #359:
URL: https://github.com/apache/logging-log4net/issues/359

   - `AppenderSkeleton.DoAppend(LoggingEvent[])` has one `try` for the whole 
batch; neither the append
     loop nor the filter loop catches per event. When one event throws (a 
custom layout, converter,
     filter or appender), the rest of the batch is lost; behind a 
`BufferingForwardingAppender` it
     exists nowhere else. `AppenderAttachedImpl` does the same for a plain 
`IAppender`, and the mail
     appenders lose the whole mail when one event fails to render. 
ANT-2026-PSTH1UQ1.
   - `FilterEvent` has no `default` in its switch. A filter decision outside 
`Deny`, `Neutral` and
     `Accept`, for example a `StringMatchFilter.TimeoutDecision` of `5` once a 
regex times out, never
     moves on: logging through that appender and shutdown hang. 
ANT-2026-VKBDETLN.
   - Since 3.0.0 `DoAppend(LoggingEvent[])` passes a `List<LoggingEvent>` and 
never reaches the
     `Append(LoggingEvent[])` overrides of the file and forwarding appenders. A 
buffered batch takes one
     file lock, one roll check and one flush per event instead of per batch. 
2.0.17 called the array
     overload.
   
   Proposed fix: catch per event in these loops and report through the error 
handler; render each
   mail event on its own and write a `<log4net.Error>` marker for one that 
fails. Treat an unknown
   filter decision like `Neutral` and reject an out-of-range `TimeoutDecision`. 
Call the array overload
   again, guarded so an override that calls back cannot recurse.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [I] One failing event costs a wh... FreeAndNil (via GitHub) via notifications

Reply via email to