0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

SLF4JとLogbackの競合で警告が出る場合の対処方法

Posted at

はじめに

今年に入ってサーバー側の調整をお手伝いする機会が多いのですが、koinのslf4jとlogbackを導入したことで以下のような警告が出ていました。

log4j:WARN No appenders could be found for logger (com.example.Log4j1). log4j:WARN Please initialize the log4j system properly. log4j:WARN See

この対処法に関して備忘録的にまとめておこうと思います。

対処方法

調整方法としましては、非常にシンプルです。
build.gradleに以下を記述する形になります。

configurations.all {
    exclude(module = "slf4j-log4j12")
}

以上になります。
上記を設定しビルドすれば以降は表示されないはずです。

さいごに

今年はやれる限り色々トライしていきますー!
その過程の知見をどんどん記事にしていきます!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?