francescopellegrini / logback-capturing-appender

Library for capturing Logback appenders output

Version Matrix

Logback Capturing Appender

Maven Central Build Codacy Badge

Scala porting of Patrick Kua class for capturing Logback appenders output.


Add to build.sbt (replace x.x.x with the appropriate version):

libraryDependencies += "com.github.francescopellegrini" %% "logback-capturing-appender" % "x.x.x"

How to use

val capturingAppender = LogbackCapturingAppender(slf4jLogger).startCapturing()

// log some messages

// Get all events logged at the configured level