[logback-user] AND in if condition ?

Ed Bras zooi at debrasjes.com
Mon Dec 20 23:20:44 CET 2010


Hmmm... Never figured it's that simple :(
Thanks for the tip..

> -----Original Message-----
> From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at 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 at qos.ch [mailto:logback-user-bounces at qos.ch]
> On Behalf Of Ed Bras
> Sent: Monday, December 20, 2010 3:52 PM
> To: logback-user at 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 at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list