[jboss-user] Application logs are not getting logged in the logs defined in jboss 7.0.2

Kevin Peterson qh.resu01 at gmail.com
Tue May 7 06:51:27 EDT 2013


Hi, 

I am using the below appenders in my domain.xml file to point all the logs from my application to app.log. I see the file is getting created but there are no logging happening.

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

               <logger category="com.abc.cache" use-parent-handlers="false">
                   <level name="DEBUG"/>
                   <handlers>
                      <handler name="CACHE-FILE"/>
                   </handlers>
               </logger>


Thanks,
Kevin Peterson




More information about the jboss-user mailing list