akka/akka-core

akka-stream log() to accept slf4j Logger

Open

#30.204 geöffnet am 28. Apr. 2021

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (3.547 Forks)batch import
1 - triagedhelp wantedt:stream

Repository-Metriken

Stars
 (13.277 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 17h 35m) (11 gemergte PRs in 30 T)

Beschreibung

Hi Team,

Following discussion in https://github.com/akka/akka-meta/issues/31 and changes in https://github.com/akka/akka/issues/26537 the typed actors now allow passing arround and using slf4j logger for any logging activity. This is nicely documented in: https://doc.akka.io/docs/akka/current/typed/logging.html

This allows much greater flexibility. It is a divergence from the logging mechanism used in classic actors (fine for me) though. But also the current classic actors logging mechanism is used in akka-stream: https://doc.akka.io/japi/akka/2.6/akka/stream/javadsl/Source.html#log(java.lang.String,akka.event.LoggingAdapter) https://doc.akka.io/docs/akka/current/stream/stream-cookbook.html#logging-in-streams

Is there any chance we could get an alternative logging function that would allow passing in your slf4j logger?

Thanks!

Contributor Guide