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: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to