Which logging framework does Tablestore SDK for Java use?
Tablestore SDK for Java uses Simple Logging Facade for Java (SLF4J) that depends on Log4j 2 as the dependency to implement the logging framework.
How can I replace a logging framework?
You can remove the declaration of the dependency on Log4j 2 from the dependency of Tablestore SDK for Java. SLF4J automatically searches your applications for a logging framework to use the framework as the dependency.
<dependency>
<groupId>com.aliyun.openservices</groupId>
<artifactId>tablestore</artifactId>
<version>5.17.4</version>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</exclusion>
</exclusions>
</dependency>