You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Matt Sicker (Jira)" <ji...@apache.org> on 2022/01/17 23:07:00 UTC

[jira] [Commented] (LOG4J2-3322) Provide StackTraceElements in Log4-Scala macros

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

Matt Sicker commented on LOG4J2-3322:
-------------------------------------

Possible duplicate of LOG4J2-1449.

> Provide StackTraceElements in Log4-Scala macros
> -----------------------------------------------
>
>                 Key: LOG4J2-3322
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3322
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Scala API
>            Reporter: Ralph Goers
>            Priority: Major
>
> My understanding is that the Scala API is made up of macros. If so, if you can get access to the method name, class name, and line number then the macro can use Log4j's fluent API to include a StackTraceElement constructed at compile time. This lowers the cost of including location information to essentially zero.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)