jvz opened a new issue, #2522: URL: https://github.com/apache/logging-log4j2/issues/2522
## Description In the docs at https://logging.apache.org/log4j/2.x/manual/layouts.html#patterns it gives an example pattern `%c{1.2.*}` that should transform something like `org.apache.commons.test.Foo` to `o.a.c.test.Foo`, but I'm seeing it transform into `o.ap.commons.test.Foo` instead. In general, the configuration I want here is to collapse all the parts of the package name to single letters except for the last package name part before the class name which is what that example precision looks to do. ## Configuration **Version:** 2.23.1 **Operating system:** macOS **JDK:** Java 21 ## Logs ``` [Stacktraces, errors, etc. relevant applications logs.] ``` ## Reproduction Use `%c{1.2.*}` in a pattern layout with a logger name such as `org.apache.logging.log4j.core.config.AbstractConfiguration` which should output `o.a.l.l.c.config.AbstractConfiguration` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
