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

Library for capturing Logback appenders output

License

Notifications You must be signed in to change notification settings

francescopellegrini/logback-capturing-appender

Repository files navigation

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

About

Library for capturing Logback appenders output

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages