1 Reply Latest reply on Jul 19, 2012 9:29 PM by ohmygod

    How to configure a more file handler for log output

    ohmygod

      version is 7.1.1.Final. I noticed in standalone.xml there is the file handler configuration, but it can only output to one log file. I tried to add another periodic-rotating-file-handler to output to another log file but it seems not working, and also did not find how to configure the another log file with a different category name. Does anybody have an idea how to resolve this problem?

       

       

      <periodic-rotating-file-handler name="FILE" autoflush="true">
             <formatter>
                 <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
             </formatter>
             <file relative-to="jboss.server.log.dir" path="server.log"/>
             <suffix value=".yyyy-MM-dd"/>
         </periodic-rotating-file-handler>