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