mirror of https://github.com/sbt/sbt.git
[1.x] log4j 2.25.3 (#8872)
This commit is contained in:
parent
52d54e495f
commit
9a43bae475
|
|
@ -15,6 +15,7 @@ import org.apache.logging.log4j.{ Level => XLevel }
|
|||
import org.apache.logging.log4j.core.{ Appender => XAppender, LoggerContext => XLoggerContext }
|
||||
import org.apache.logging.log4j.core.config.{ AppenderRef, LoggerConfig }
|
||||
import sbt.internal.util._
|
||||
import scala.annotation.nowarn
|
||||
import scala.collection.JavaConverters._
|
||||
import org.apache.logging.log4j.core.config.AbstractConfiguration
|
||||
import org.apache.logging.log4j.message.ObjectMessage
|
||||
|
|
@ -56,6 +57,7 @@ object LoggerContext {
|
|||
if (closed.get) {
|
||||
throw new IllegalStateException("Tried to create logger for closed LoggerContext")
|
||||
}
|
||||
@nowarn
|
||||
val loggerConfig = LoggerConfig.createLogger(
|
||||
false,
|
||||
XLevel.DEBUG,
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ object Dependencies {
|
|||
val scalaPar = "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0"
|
||||
|
||||
// specify all of log4j modules to prevent misalignment
|
||||
def log4jModule = (n: String) => "org.apache.logging.log4j" % n % "2.17.1"
|
||||
def log4jModule = (n: String) => "org.apache.logging.log4j" % n % "2.25.3"
|
||||
val log4jApi = log4jModule("log4j-api")
|
||||
val log4jCore = log4jModule("log4j-core")
|
||||
val log4jSlf4jImpl = log4jModule("log4j-slf4j-impl")
|
||||
|
|
|
|||
Loading…
Reference in New Issue