<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello</div><div><br></div><div>I have an application that has an mdc <span style="font-style: italic;">variable</span>. How can I make a proper filter, so that if <span style="font-style: italic;">variable</span> = test, all such output goes to one file, and to another file if <span style="font-style: italic;">variable</span> is anything else?</div><div><br></div><div>I tried the following (not sure how to go from there even if it worked though):</div><div><br></div><div><expression><br> mdc?.get("variable") ~= /test/<br></div><div></expression></div><div><br></div><div>but the result is </div><div><br></div><div>ERROR in ch.qos.logback.classic.boolex.JaninoEventEvaluator@7d55b9f - Could not start evaluator with expression [mdc?.get("variable") ~= /test/
)]</div><div><br></div><div>Any suggestions?</div><div><br></div><div>Thanks</div></div></body></html>