[logback-user] AND in if condition ?

Roberts, David droberts at hoovers.com
Mon Dec 20 22:59:59 CET 2010


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


More information about the Logback-user mailing list