francescopellegrini / logback-capturing-appender   1.1.0

MIT License GitHub

Library for capturing Logback appenders output

Scala versions: 2.12

Logback Capturing Appender

Maven Central Build Codacy Badge Codacy Coverage Badge

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

Installation

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
capturingAppender.loggedEvents