Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1367

Future of logging in Akka: classic EventStream or SLF4J?

$
0
0

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.

  1. Should implementing loggers for the classic logging EventStream be considered deprecated or otherwise discouraged in favor of SLF4J?
  2. If SLF4J is in fact the way forward, any thoughts/advice how to implement e.g. a logback Appender that has access to the ActorSystem? It seems impossible to configure this directly via the logback.xml; such an Appender would have to be initialized programmatically after the ActorSystem is created.

Thanks in advance for some direction on this issue.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1367

Trending Articles