avgp / slickmdc   1.0.0

MIT License GitHub

slf4j MDC logging for Slick

Scala versions: 2.11

Slick MDC logging

Keeping your mapped diagnostic context when using Slick

Basic usage

Add this to your build.sbt

  libraryDependencies ++= "de.geekonaut" %% "slickmdc"  % "1.0.0"

In your application, you need to pass the MdcAsyncExecutor to your database setup:

  val db = Database.forDataSource(connectionPool, MdcAsyncExecutor.apply("Database", 10)) // using 10 threads