[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:
1
pom.xml
1
pom.xml
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user