Merge pull request #3382 from eed3si9n/wip/slf4j

Log4j 2 SLF4J Binding
This commit is contained in:
eugene yokota 2017-07-28 03:45:40 -04:00 committed by GitHub
commit 518a905d35
2 changed files with 8 additions and 1 deletions

View File

@ -356,7 +356,7 @@ lazy val mainProj = (project in file("main"))
.settings(
testedBaseSettings,
name := "Main",
libraryDependencies ++= scalaXml.value ++ Seq(launcherInterface),
libraryDependencies ++= scalaXml.value ++ Seq(launcherInterface) ++ log4jDependencies,
managedSourceDirectories in Compile +=
baseDirectory.value / "src" / "main" / "contraband-scala",
sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala",

View File

@ -113,4 +113,11 @@ object Dependencies {
val scalaXml = scala211Module("scala-xml", "1.0.6")
val scalaParsers = scala211Module("scala-parser-combinators", "1.0.5")
def log4jVersion = "2.8.1"
val log4jApi = "org.apache.logging.log4j" % "log4j-api" % log4jVersion
val log4jCore = "org.apache.logging.log4j" % "log4j-core" % log4jVersion
val log4jSlf4jImpl = "org.apache.logging.log4j" % "log4j-slf4j-impl" % log4jVersion
// specify all of log4j modules to prevent misalignment
val log4jDependencies = Vector(log4jApi, log4jCore, log4jSlf4jImpl)
}