Translated message

A translation of this page exists in English.

JBoss EAP にデプロイされたアプリケーションで LogBack を使用できますか?

Solution In Progress - Updated -

Issue

  • Logback を使用してアプリケーションのロギングを設定しようとしています。SLF4J を使用してすべてのログを Logback にルーティングしてこれを実現しようとしています。ただし、JBoss には、ログを JBoss LogManager (java.util.logging を拡張) にルーティングするための独自のバージョンの SLF4J があるようです。アプリケーションの依存関係の 1 つは java.util.logging を使用していますが、JBoss には jul-to-slf4j スタブがあります。どうすればそれを機能させることができるでしょうか?
  • 提供された eap maven リポジトリーに slf4j-simple が見つかりません。
  • EAP インストールをバージョン 6.2 から 6.3 に更新しているときに、jboss-as-parent-7.4.0.Final-redhat-19.pom ファイル内の org.slf4j のバージョンが更新されました。更新したバージョンは 1.7.2.redhat-2 から 1.7.2.redhat-3 です。使用している slf4j-simpleJAR ファイルには、1.7.2.redhat-3 バージョンがありません。eap maven リポジトリーにはそれが含まれていません。この JAR ファイルを提供していただけますか?それとも、バージョン 1.7.2.redhat-2 で提供されている JAR を使用するべきでしょうか?
  • "LoggerFactory is not a Logback LoggerContext but Logback is on the classpath.Either remove Logback or the competing implementation". というエラーメッセージが表示されます。 これを修正するにはどうすればいいでしょうか?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content