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

@@ -283,6 +283,7 @@ under the License.
<org.apache.commons.logging.diagnostics.dest>STDOUT</org.apache.commons.logging.diagnostics.dest>
-->
<log4j12>${org.apache.logging.log4j:log4j-1.2-api:jar}</log4j12>
<log4j-api>${org.apache.logging.log4j:log4j-api:jar}</log4j-api>
<logkit>${logkit:logkit:jar}</logkit>
<servlet-api>${javax.servlet:javax.servlet-api:jar}</servlet-api>
<commons-logging>target/${project.build.finalName}.jar</commons-logging>