Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.0.13
-
None
Description
We got
java.lang.IllegalArgumentException: For logger [***] child name [*** passed as parameter, may not include '.' after index***
To fix this LoggerNameUtil.getSeparatorIndexOf should be modified to return the index of dollar if before index of dot
public static int getSeparatorIndexOf(final String name, final int fromIndex) { int i = name.indexOf(CoreConstants.DOT, fromIndex); int j = name.indexOf(CoreConstants.DOLLAR, fromIndex); if (i != -1 && j != -1) { return Math.min(i, j); } else { return Math.max(i, j); } }
Attachments
Issue Links
- duplicates
-
LOGBACK-384 Mixing periods and dollar signs in a logger name causes IllegalArgumentException from LoggerFactory.getLogger
- Resolved