Hello


I am trying to get log4cxx to use ExpressionFilter or StringMatchFilter or
any other through a java based config file:



log4j.filter=org.apache.log4j.filter.ExpressionFilter

log4j.filter.stringtomatch="MSG LIKE Starting"

log4j.filter.AcceptOnMatch=false



log4j.filter=org.apache.log4j.filter.StringMatchFilter

log4j.filter.stringtomatch="Starting"

log4j.filter.AcceptOnMatch=false



I have tried using various combination of the above statements, but nothing
seems to work. Just wanted to confirm,

if these features are supported yet or not as I did not see
StringMatchFilter class being used anywhere.



What I wish to achieve with this is a functionality that will allow me to
log message as follow:



Log4j.logger.foo.1.bar.2.mylogger =  OFF

or

MyClassname.cpp = OFF



So, if the filter finds **mylogger** anywhere, it will not log those
message. Please let me know if there is any other way to achieve this.



Thanks!


-- 
Regards,
Rakesh Sehgal.

Reply via email to