You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "jvz (via GitHub)" <gi...@apache.org> on 2023/01/28 19:32:16 UTC

[GitHub] [logging-log4j-kotlin] jvz opened a new issue, #29: Add an extension property for storing a cached logger

jvz opened a new issue, #29:
URL: https://github.com/apache/logging-log4j-kotlin/issues/29

   Analogous to the extension function `T.logger()` which constructs a logger using the class of `T`, an extension property `T.logger` should be added for an alternative to using the `Logging` mixin. The general change is fairly simple:
   
   ```kt
   inline val <reified T> T.logger: KotlinLogger
     get() = cachedLoggerOf(T::class.java)
   ```


-- 
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: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [logging-log4j-kotlin] jvz closed issue #29: Add an extension property for storing a cached logger

Posted by "jvz (via GitHub)" <gi...@apache.org>.
jvz closed issue #29: Add an extension property for storing a cached logger
URL: https://github.com/apache/logging-log4j-kotlin/issues/29


-- 
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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org