You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Raman Gupta (JIRA)" <ji...@apache.org> on 2017/11/24 01:40:00 UTC

[jira] [Commented] (LOG4J2-1705) Kotlin wrapper for Log4j 2 API

    [ https://issues.apache.org/jira/browse/LOG4J2-1705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264865#comment-16264865 ] 

Raman Gupta commented on LOG4J2-1705:
-------------------------------------

[~garydgregory] [~jvz] I've updated my repo at https://github.com/rocketraman/logging-log4j-kotlin. Its in pretty decent shape now I think, except location-aware logging line numbers are totally messed up. I believe this is currently a limitation of `inline` functions in Kotlin -- there currently doesn't seem to be a way to get location info for Kotlin inline functions without inspecting the stack, however this is a very slow operation. I think we should consider publishing the module as-is, with the known limitation that location info works at the file level, but not at the line level.

> Kotlin wrapper for Log4j 2 API
> ------------------------------
>
>                 Key: LOG4J2-1705
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1705
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: API
>            Reporter: Raman Gupta
>
> Similar to LOG4J2-1181 for Scala, provide a Kotlin wrapper for the Log4j 2 API that makes use of Kotlin features like delegates and string interpolation.
> If there is interest in this, I'd like to contribute a patch.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)