[1.x] log4j 2.25.3 (#8872)

This commit is contained in:
eugene yokota 2026-03-04 01:36:53 -05:00 committed by GitHub
parent 52d54e495f
commit 9a43bae475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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")