1
0

[LOGGING-192] Fix factory loading from TCCL (#281)

This fixes the loading of standard `LogFactory` implementations from the TCCL.

The current code has a fallback clause in `newFactory`, so it can happen that the code tests for the presence of Log4j API and SLF4J in the TCCL, but it actually loads the factory from the current classloader (which lacks either of those libraries).
This commit is contained in:
Piotr P. Karwasz
2024-08-15 00:56:20 +02:00
committed by GitHub
parent 46f2d36868
commit 3ed2daf47f
6 changed files with 232 additions and 43 deletions

View File

@@ -45,10 +45,11 @@ The <action> type attribute can be add,update,fix,remove.
<body>
<release version="1.3.4" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
<!-- FIX -->
<action dev="pkarwasz" issue="LOGGING-192" type="fix" due-to="Björn Kautler, Piotr Karwasz">Fix factory loading from context class loader.</action>
<!-- ADD -->
<!-- UPDATE -->
<action dev="ggregory" type="update" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 71 to 72.</action>
<action dev="ggregory" type="update" due-to="Gary Gregory, Dependabot">Bump org.slf4j:slf4j-api from 2.0.13 to 2.0.15 #276.</action>
<action dev="ggregory" type="update" due-to="Gary Gregory, Dependabot">Bump org.slf4j:slf4j-api from 2.0.13 to 2.0.15 #276.</action>
</release>
<release version="1.3.3" date="2024-06-30" description="This is a feature and maintenance release. Java 8 or later is required.">
<!-- FIX -->