Page tree
Skip to end of metadata
Go to start of metadata

JBoss 7 Application Server adds its own log4j logging configuration. If you want to use your own log4j logging configuration in your deployment, exclude the JBoss configuration first.

Create a new file jboss-deployment-structure.xml under the WEB-INF folder with this content:

  <!-- Exclusions allow you to prevent the server from automatically adding some dependencies -->
      <module name="org.apache.log4j" />
      <module name="org.slf4j" />

See How do I use or log4j.xml instead of using the logging subsystem configuration?