GitHub user zsomborklara opened a pull request:
https://github.com/apache/logging-log4j2/pull/111
LOG4J2-1216: Nested pattern layout options broken
Change is for the most part as suggested by the original reported of the
issue in the Jira, I only added a unit test. I made one small modification:
```
if (depth > 0) { // option not closed, continue with pattern on
opening "{"
return begin-1;
}
```
Turned to:
```
if (depth > 0) { // option not closed, continue with pattern after
closing bracket
return pattern.indexOf('}', start) + 1;
}
```
Because the original version was breaking
PatternParserTest#testCustomPattern.
Also it seems there are 3 unit test in core that are broken on head.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zsomborklara/logging-log4j2 master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/111.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #111
----
commit 36919e2c72cfb88af5aca1ea4fd629b4bf5bac6d
Author: zsomborklara <[email protected]>
Date: 2017-09-28T15:28:03Z
LOG4J2-1216: Nested pattern layout options broken
----
---