Patrik answered:
"…Short answer is that Akka’s logging is asynchronous so Slf4jLogger is expected. You can create your own slf4j Logger with the LoggerFactory and then you will see your own source code. "
I am not sure if I understand what and why to do. Logback is a backend for Slf4j. Do we have to switch to Slf4j Impl now? And why?
Akka’s internal logging is asynchronous, meaning that log messages emitted via the akka.event.LoggingAdapter is sent to the actor Slf4jLogger. It’s the Slf4jLogger actor that will call the slf4j.Logger method and therefore the thread and source line number is from the Slf4jLogger actor.
That is by design and there is no work around for that for Akka’s internal logging.
For your own logging you don’t have to use Akka’s LoggingAdapter. You can log directly to your own slf4j.Logger.