I have an appender that has a string property. I would like that property to be in a JSON string format.
However, due to a parsing logic error, logback's variable substitution logic for strings will remove the last right curly brace from the string. This prevents me from being able to use a JSON string property.
For example, if the logback.xml contains:
And the TestAppender class contains:
I expect logback to pass the following string to the setTestProperty method:
However, logback incorrectly strips off the trailing right curly brace, and instead passes the following string
I have attached a project that demonstrates the behavior.
To run the test, execute the following: