Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Use my own log4j.xml with EAP 6.1

    Posted on

    Seems that this question is everywhere, but I've yet to come up with a solution. I have a WEB-INF\classes\log4j.xml with the root level of the logger set to DEBUG.

    I'm deploying the following in my WEB-INF\lib directory
    log4j-1.2.17.jar
    slf4j-api-1.7.5.jar
    slf4j-log4j12-1.7.5.jar

    I have a jboss-deployment-structure.xml file at the root of WEB-INF\ that looks like this.


    Then in my run.conf there was already a line for
    JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.as.logging.per-deployment=false"

    and I've confirmed this is getting used from the console.log.

    When JBOSS starts up all I get is INFO messages and it doesn't appear to be using my log4j.xml configuration whatsoever.

    What are the steps needed to use my log4j.xml and my deployed jars for logging?

    by

    points

    Responses

    Red Hat

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat, Inc.