Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 1.26 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.26 KB

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