Hi,
I have deployed the Hawtio war in JBOSS 6 EAP along with my camel application war.
- deployed a non-sl4j version of the hawtio war ( with log4j.properties removed)
- added the logQueryBean ( from insight-log) in the Camel-Context of the my application war
- hawtio console displays the camel contexts, routes etc perfectly.
I have a problem with the logs display ..Logs from my custom log are not getting picked up by Hawtio.
My Logger config from jbsoss _> stanadalone.xml -> logging subsystem
<periodic-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="FILE_FM" autoflush="true">
<level name="INFO"/>
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="serverFM.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
....
<handlers>
<handler name="FILE_FM"/>
</handlers>
</logger>
The logs routed to the custom Logger (serverFM.log) are not getting picked up by Hawtio. All the logs from server.log gets into Hawtio log console.
If i remove the use-parent-handlers="false" from the FILE_FM logger category definition, it routes the logs to both server.log and serverFM.log and gets picked up by Hawtio as well. I want to avoid this logs duplication.. Is there any way to get the custom logs picked-up by the Hawtio than removing the use-parent-handlers="false"
Thanks,
Sigy