How to put Log4J configuration file outside application when using per-deployment logging in JBoss EAP 6?

Solution Verified - Updated -

Issue

  • How can log4j configuration files placed outside applications be used when using per-deployment logging in JBoss EAP 6?
  • Tried to make some changes in the application, but the application does not log any traces in the server.log file.
  • How application running on JBoss EAP 6 server should create its own log file and control the logging behavior using log4j properties outside of war file?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.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.