Raman Gupta created LOG4J2-2474:
-----------------------------------
Summary: Optional support for the Kotlin compiler API / plugin in
the Kotlin logger API
Key: LOG4J2-2474
URL: https://issues.apache.org/jira/browse/LOG4J2-2474
Project: Log4j 2
Issue Type: New Feature
Components: Kotlin API
Reporter: Raman Gupta
The Kotlin compiler API can be used to create compiler plugins that can do the
same kinds of things as Scala macros.
It would be interesting to (optionally) support this kind of compiler plugin
for the Kotlin logger API, allowing log messages to be written very simply with
just String interpolation and without lambdas as the current API uses, but via
the compiler plugin these remain efficient.
The compiler plugin could do things like gate the logger call / string
interpolation based on the logger enabled status and strip out certain logger
calls in production code (but leave them in dev code). There may be other
possibilities as well.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)