すべてのプロダクト
Search
ドキュメントセンター

Tablestore:Tablestore SDK for Java ロギングフレームワークに関する FAQ

最終更新日:Apr 03, 2025

Tablestore SDK for Java はどのロギングフレームワークを使用していますか?

Tablestore SDK for Java は、[log4j 2] を依存関係として使用する Simple Logging Facade for Java (SLF4J) を使用して、ロギングフレームワークを実装しています。

ロギングフレームワークを置き換えるにはどうすればよいですか?

Tablestore SDK for Java の依存関係から [log4j 2] への依存関係の宣言を削除できます。SLF4J は、アプリケーションで使用するロギングフレームワークを自動的に検索し、そのフレームワークを依存関係として使用します。

<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>