I would expect it to take strings and (try) convert to a level.

On 9/28/12, Ralph Goers <[email protected]> wrote:
> LOG4J2-92 was reported against DynamicThresholdFilter as it is documented as
> using KeyValuePairs.  KeyValuePairs consist of a String key and a String
> value. DynamicThresholdFilter actually accepts a ValueLevelPair which has a
> String key and a Level as a value. Of course, the level has to be specified
> as a String in the configuration.
>
> My question is , does it make sense for DynamicThresholdFilter to use a
> ValueLevelPair?  It is the only component that does and it is likely to just
> cause confusion. The only real benefit is that ValueLevelPair immediately
> converts the String to a Level so the error reporting happens from there
> instead of from DynamicThresholdFilter's factory method.
>
> Thoughts?
>
> Ralph
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

-- 
Sent from my mobile device

Regards
Tushar Kapila

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

Reply via email to