Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3322

Provide StackTraceElements in Log4-Scala macros

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Scala API
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgoers Ralph Goers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: