
I want to do something like this in my logback.xml configuration: <if condition='!property("app.environment").equals("dev") && !property("app.environment").equals("build")'> <then> ... But that doesn't work. How to define a "AND" in a if condition? Here can I find more examples about this syntax? Ed

You need to write && instead of &&. That's all... -----Original Message----- From: logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] On Behalf Of Ed Bras Sent: Monday, December 20, 2010 3:52 PM To: logback-user@qos.ch Subject: [logback-user] AND in if condition ? I want to do something like this in my logback.xml configuration: <if condition='!property("app.environment").equals("dev") && !property("app.environment").equals("build")'> <then> ... But that doesn't work. How to define a "AND" in a if condition? Here can I find more examples about this syntax? Ed _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user

Hmmm... Never figured it's that simple :( Thanks for the tip..
-----Original Message----- From: logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] On Behalf Of Roberts, David Sent: maandag 20 december 2010 23:00 To: logback users list Subject: Re: [logback-user] AND in if condition ?
You need to write && instead of &&. That's all...
-----Original Message----- From: logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] On Behalf Of Ed Bras Sent: Monday, December 20, 2010 3:52 PM To: logback-user@qos.ch Subject: [logback-user] AND in if condition ?
I want to do something like this in my logback.xml configuration:
<if condition='!property("app.environment").equals("dev") && !property("app.environment").equals("build")'> <then> ...
But that doesn't work. How to define a "AND" in a if condition? Here can I find more examples about this syntax?
Ed
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ed Bras
-
Roberts, David