ppkarwasz opened a new pull request #753:
URL: https://github.com/apache/logging-log4j2/pull/753


   This PR fixes a couple of issues concerning filters in the Log4j 1.x bridge:
   
    - there is an endless loop in `FilterAdapter#filter` that hangs the program 
if more than one filter per appender is configured,
    - filters are executed multiple times per log message.
   
   The second problem comes from chains of Log4j 1.x filters: a filter chain is 
split into a `CompositeFilter` of `FilterAdapter`s (one for each filter). Each 
`FilterAdapter` executes its own filter and all those that come later in the 
chain.
   
   In order to preserve the behavior of `FilterAdapter` the following 
restrictions have been applied to the generated filters:
   
    1. no chains of Log4j 1.x filters are generated by the configuration 
factories; a list of Log4j 1.x filters is represented as a wrapped 
`CompositeFilter` of `FilterAdapter`s (or native Log4j 2.x filters),
    2. the factories don't generate any `FilterWrapper`s of `FilterAdapter`s 
nor `FilterAdapter`s of `FilterWrapper`s.


-- 
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]


Reply via email to