[logback-dev] [Bug 12] New: Joran passing wrong Expression to EventEvaluator

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Oct 13 11:47:10 CEST 2006


http://bugzilla.qos.ch/show_bug.cgi?id=12

           Summary: Joran passing wrong Expression to EventEvaluator
           Product: logback-core
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Joran
        AssignedTo: logback-dev at qos.ch
        ReportedBy: noreply.sebastien at qos.ch


I've been trying to use two conditions in an expression, like this:

<evaluator name="DISPLAY_CALLER_EVAL">
  <!-- >Expression>(logger.name.contains("chapter5"))</Expression-->
  <Expression>message.contains("stacktrace") &&
message.contains("logging")</Expression>
</evaluator>

This precise configuration leads to a JaninoEventEvaluator using the following
expression:

message.contains("logging")

If I replace the && part with either &#38;&#38; or &amp;&amp;, it still doesn't
work. The same expression is recieved by the EventEvaluator.

I've added a test case in EvaluatorJoranTest called
testMultipleConditionsInExpression() that proves that an Evaluator can work if
given an expression containing multiple conditions.

In my understanding, it seems that the process that is reading the xml file and
passing it to the Evaluator does not work properly.


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list