Pure Scala logger for the Scala Platform

Java API – some would prefer a Log4j2 api entry point rather than a slf4j one as it is slightly more feature rich. Does it support line number / class extraction via this entry point, since macros aren’t available?

Yes, although it’s done at runtime with an expensive call to get the stack trace. Use %l in your log layout. Log4j – Log4j 2 Layouts

I have a change to the scala API to make this happen at run time, but it hasn’t been merged. exposes the location part of the Message to loggers by shawjef3 · Pull Request #152 · apache/logging-log4j2 · GitHub