1 Reply Latest reply on Mar 22, 2012 6:14 PM by eabohorquezs1

    How can I change my JBoss AS server log4j level in hot?

    eabohorquezs1

      Good afternoon guys,

       

      I want my JBoss AS 4.2.3 to be able to change its Log4j level in execution time whitout the need of restarting the server

      (From INFO to DEBUG and the same way around, for instance).


      1) I have set up my JBOSS-HOME/server/default/conf/jboss-log4j.xml file  in this way:

       

      <!--APPENDERS-->

      .

      .

      .

      <!--CATEGORIES-->

      .

      .

      .

      <root>

            <appender-ref ref="FILE"/>           

            <appender-ref ref="CONSOLE"/>           

                  <priority value="${jboss.server.log.threshold}"/>

      </root>

       

      2) I have also changed my JBOSS-HOME/bin/run.conf in this way:

      .

      .

      .

      JAVA_OPTS="$JAVA_OPTS -Djboss.server.log.threshold=INFO"

      .

      .

      .

      This should made my server to log just messages from INFO level. But, I want to log messages from DEBUG level  in some situations and I do not want to restart the server to do it.

      I am not sure but I think there is a module into the server tools to change the log4j level without restarting the server. What is it?

       

      Thanks in advance for your help.

       

      Andres Bohorquez.