ppkarwasz commented on issue #1884: URL: https://github.com/apache/logging-log4j2/issues/1884#issuecomment-1782502678
@makkimesser, The usual reason for using instance `Logger` fields on abstract classes, instead of static fields is that each subclass wants to use its own name in log messages (using the `%c` pattern, which means "logger name"). This was usually an _ersatz_ for what developers really want: the `%C` pattern, which provides the class name that generated a log statement. Traditionally the `%C` pattern is computationally expensive, but using static weaving provided by the [Log4j Transform Maven plugin](https://logging.apache.org/log4j/transform/latest/#log4j-transform-maven-plugin) you can remove the performance penalty. The plugin might be rough around the edges, but some committers already use in production. -- 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]
