mirror of https://github.com/sbt/sbt.git
Merge pull request #7386 from Duhemm/log4j-loggers-list
Keep logger names in hash set
This commit is contained in:
commit
1f94406ba0
|
|
@ -428,6 +428,7 @@ lazy val utilLogging = (project in file("internal") / "util-logging")
|
|||
exclude[MissingTypesProblem]("sbt.internal.util.ConsoleAppender"),
|
||||
exclude[MissingTypesProblem]("sbt.internal.util.BufferedAppender"),
|
||||
exclude[MissingClassProblem]("sbt.internal.util.Terminal$BlockingInputStream$"),
|
||||
exclude[IncompatibleResultTypeProblem]("sbt.util.LoggerContext#Log4JLoggerContext.loggers"),
|
||||
),
|
||||
)
|
||||
.configure(addSbtIO)
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ object LoggerContext {
|
|||
case a: AbstractConfiguration => a
|
||||
case _ => throw new IllegalStateException("")
|
||||
}
|
||||
val loggers = new java.util.Vector[String]
|
||||
val loggers = new java.util.HashSet[String]
|
||||
private[this] val closed = new AtomicBoolean(false)
|
||||
override def logger(
|
||||
name: String,
|
||||
|
|
|
|||
Loading…
Reference in New Issue