akka/akka-core

Provide log4j2 support in LoggingTestKit instead of logback-classic

Aperta

#29.154 aperta il 29 mag 2020

 (1 commento) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:testingt:typed

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

LoggingTestKit requires logback-classic library to be on the classpath. We can see this in the implementation at https://github.com/akka/akka/blob/master/akka-actor-testkit-typed/src/main/scala/akka/actor/testkit/typed/internal/LoggingTestKitImpl.scala#L120

log4j2 (https://logging.apache.org/log4j/2.x/) is the successor to logback and it will be great to move the dependency in LoggingTestKit to use log4j2 instead.

Guida contributor