1 Reply Latest reply on Jan 4, 2013 12:52 PM by James Perkins

    Is it possible to use predefined path in custom logger?

    Newbie

      Hi,

       

      I want to use one of the predefined paths in my custom logger, but it looks like it does not work. Is this not supported?

       

      So here is my configuration

       

      <custom-handler

         <properties>                   

             <property name="logDir" value="jboss.server.log.dir"/>

             <property name="fileName" value="tomsTest2.log"/>

         </properties>

      </custom-handler>

       

      According to https://docs.jboss.org/author/display/AS71/General+configuration+concepts the path jboss.server.log.dir should be defined and in the boot.log I can see that it has the correct path, but it is not substituted for my conifg.

        • 1. Re: Is it possible to use predefined path in custom logger?
          James Perkins Master

          On the latest upstream you can use something like ${jboss.server.log.dir}. On older version unfortunately you'll have to look up the system property in the custom handler.

           

           

          <custom-handler
             <properties>                   
                 <property name="logDir" value="${jboss.server.log.dir:./}"/>
                 <property name="fileName" value="tomsTest2.log"/>
             </properties>
          </custom-handler>
          

           

          --

          James R. Perkins