[ https://issues.apache.org/jira/browse/LOG4J2-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15350716#comment-15350716 ]
Mikael Ståldal commented on LOG4J2-1181: ---------------------------------------- The string is parsed at compile time, and transformed into string construction with a {{StringBuilder}}. Probably not unlike string concatenation in Java. However, I think it will not be garbage free, since a new {{StringBuilder}} is created each time. But I don't think it is worthwhile to strive for garbage freeness in Scala since Scala is currently not very good at that in general. If you really need garbage freeness, you would probably not use Scala in the first place. > Scala wrapper for Log4j 2 API > ----------------------------- > > Key: LOG4J2-1181 > URL: https://issues.apache.org/jira/browse/LOG4J2-1181 > Project: Log4j 2 > Issue Type: New Feature > Components: API > Affects Versions: 2.4.1, 2.5, 2.6, 2.6.1 > Reporter: Mikael Ståldal > > Scala wrapper for Log4j 2 API which makes use of Scala features like macros > and string interpolation. > Inspired from [Typesafe's Scala > Logging|https://github.com/typesafehub/scala-logging] but should use Log4j 2 > directly and expose its features. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org