[ 
https://issues.apache.org/jira/browse/LOG4J2-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Remko Popma resolved LOG4J2-821.
--------------------------------
    Resolution: Won't Fix

As Ralph said, if any of the policies in a CompositeTriggeringPolicy returns 
true, then the composite returns true.

The reason your example configuration did not work is probably because of the 
typo: <CompositeTriggering{color:red}i{color}Policy> should be 
{{<CompositeTriggeringPolicy>}} (without the 'i' between Triggering and Policy).

> CompositeTriggeringPolicy behavior
> ----------------------------------
>
>                 Key: LOG4J2-821
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-821
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.0.2
>            Reporter: Hassan Kalaldeh
>
> referring to "Composite Triggering Policy" section under 
> http://logging.apache.org/log4j/2.x/manual/appenders.html
> "Composite Triggering Policy
> The CompositeTriggeringPolicy combines multiple triggering policies and 
> returns true if any of the configured policies return true. The 
> CompositeTriggeringPolicy is configured simply by wrapping other policies in 
> a Policies element."
> Shouldn't be the opposite, CompositeTriggeringPolicy  returns true only of 
> all children triggering policies are met ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to