3 Replies Latest reply on May 16, 2013 7:43 AM by Jefferson M

    Jboss 7.1.1 logging rotation problem

    Jefferson M Newbie

      My logging rotating configuration:

       

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

           <formatter>

                <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

           </formatter>

           <file path="./domain/servers/tec-server/log/myapp.log"/>

           <suffix value=".yyyy-MM-dd"/>

           <append value="true"/>

      </periodic-rotating-file-handler>

       

      When I change <file relative-to="jboss.server.log.dir" path="myapp.log"/> to <file path="./domain/servers/tec-server/log/myapp.log"/> the logging rotation don't works more. Why this happens?

      I did that change because the log file "myapp.log" was created in every server under my domain.

      The log file must be created only in the tec-server server.