sbt/internal
Martin Duhem f03320047e
Keep logger names in hash set
Previously, the list of logger names that have been created in a given
context with Log4J was being kept in a `Vector`. As a result, subsequent
calls to `logger` on a `Log4JLoggerContext` with the same logger name
would introduce duplicates in the list. Note that Log4J's logger
configuration would not allow duplicates, and only one configuration
object for a given logger name will exist. The duplicates in the list of
logger names are therefore unnecessary.

With this patch, the logger names will be kept in a `HashSet`.

Since the logger names are only used to remove the logger configurations
after the logger context is closed, and the logger configurations
contain no duplicates, removing duplicate logger names should not cause
any issue.
2023-09-25 17:40:12 +02:00
..
util-collection fix typo 2023-06-24 20:05:52 +09:00
util-complete some trivial refactoring 2023-06-25 08:57:41 +09:00
util-control Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
util-interface/src/main/java/xsbti Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
util-logging Keep logger names in hash set 2023-09-25 17:40:12 +02:00
util-logic/src Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
util-position/src Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
util-relation/src Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
util-scripted/src/main Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00