[logback-user] JaninoEventEvaluator Expression
Roberts, David
droberts at hoovers.com
Mon Nov 8 20:07:16 CET 2010
Is it possible to have an expression with multiple criteria?
For example:
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
<evaluator
class="ch.qos.logback.classic.boolex.JaninoEventEvaluator">
<expression>(logger.equals("mylogger") && message.contains("my
message"))</expression>
</evaluator>
<OnMismatch>NEUTRAL</OnMismatch>
<OnMatch>DENY</OnMatch>
</filter>
I have tried encoding the && and using CDATA but logback still doesn't
accept it or perform correctly.
Dave
More information about the Logback-user
mailing list