I just read akka#26537 by @patriknw which describes a decision to switch from classic’s EventStream
to SLF4J for akka-typed
(possibly tentative?).
This is of interest to me because I am currently writing a custom logging backend that sends events to a REST API. For this reason the classic EventStream
logging infrastructure is appealing: the logger is initialized by spawning an Actor
and thus has full access to the ActorSystem
, Http
, etc.
- Should implementing loggers for the classic logging
EventStream
be considered deprecated or otherwise discouraged in favor of SLF4J? - If SLF4J is in fact the way forward, any thoughts/advice how to implement e.g. a logback
Appender
that has access to theActorSystem
? It seems impossible to configure this directly via thelogback.xml
; such anAppender
would have to be initialized programmatically after theActorSystem
is created.
Thanks in advance for some direction on this issue.
3 posts - 2 participants