Kevin Peterson
2013-05-07 10:51:27 UTC
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
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