[logback-user] Problems with 'logback.XML to Groovy' translator (website)
Heinz Romirer | TAC GmbH
H.Romirer at tac.eu.com
Fri Dec 14 08:29:11 CET 2012
Hey there,
just wanted to make a comment on the 'logback.XML to Groovy translator' webpage.
It seems that ampersands ("&") are not HTML escaped an therefore, if you have some
logical expression within your XML like this:
<expression>
marker != null && marker.contains("SMTP_TRIGGER")
</expression>
You will see the following error:
// XML parsing failure
// org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
So you have to escape the ampersands yourself ("&"), like this:
<expression>
marker != null && marker.contains("SMTP_TRIGGER")
</expression>
To make it work.
Just wanted to let you know ;)
More information about the Logback-user
mailing list