0 Replies Latest reply on Jul 10, 2013 12:18 AM by King Koopa

    JBoss custom log location confguration

    King Koopa Newbie

      Hello all experts !!

      I wanted to know how to configure a custom location for the server.log boot.log and host-controller.log & process-controller.log files?

       

      I configured my Server.log location in JBOSS_HOME/domain/configuration/domain.xml And it WORKS !!!)

      <profiles>

      <profile name="default">

      <subsystem xmlns="urn:jboss:domain:logging:1.1">

      ...

      <periodic-rotating-file-handler name="FILE">

      ...

      <file relative-to="custom.jboss.server.log.dir" path="/tmp/logs/server.log"/> # server.log name is defined here

      ...

      </periodic-rotating-file-handler>

      </subsystem>

      ...

      </profile>

      ...

      </profiles>

       

       

      For host-controller.log and process-controller.log , i made changes in the domain.sh file and it works fine

      BUT BUT as soon as i touch logging.properties to change boot.log location , i made the change in the JBOSS_HOME/domain/configuration/logging.properties:

       

       

      handler.FILE.fileName=${org.jboss.boot.log.file:/tmp/logs/boot.log},

       

       

      the process and host log files disappear.

       

       

      Im really hoping someone can help me figure this one out...

       

       

      Any help in figuring this out is monumentally appreciated.!!!

      Sincerely,

      KK