Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

特定のアプリケーションの log4j 設定を分離する

Solution Unverified - Updated -

Issue

  • 同じサーバーでアプリケーションのインスタンスを複数実行する場合に、それぞれのアプリケーションに異なるログファイルが必要です。アプリケーションは同じなので、log4j 設定を分割して異なるファイルに出力するには、フィルターを実装する必要があります。もしくは、クラスローダースコーピングを利用して、個々のアプリケーションが log4j インスタンスをそれぞれ持つようにします。これにより、JBoss サーバーのログは従来どおり、デフォルトの server.log にログが記録され、アプリケーションはそれぞれ異なるログに記録されます。

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.