Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
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
- duplicates
-
LOG4J2-1449 Injectable location info
- Open