What are logging profiles and how do I use them?
Issue
- How do I separate log files per application in JBoss EAP 6.1 GA?
- How do I configure logging profiles using the CLI to create separate log files per application in JBoss EAP 6.1 GA?
- How to enable the debug mode in standalone-full-ha.xml?
- We want to enable the ejb logging in debug mode . For that we have configured the following logging profile but its not working:
<logging-profiles>
<logging-profile name="ejb-profile">
<file-handler name="ejb-file">
<level name="TRACE"/>
<file relative-to="jboss.server.log.dir" path="ejb.log"/>
</file-handler>
<logger category="org.jboss.ejb">
<level name="TRACE"/>
<handlers>
<handler name="ejb-file"/>
</handlers>
</logger>
<logger category="org.jboss.remoting3">
<level name="TRACE"/>
<handlers>
<handler name="ejb-file"/>
</handlers>
</logger>
<logger category="org.jboss.as.ejb3">
<level name="TRACE"/>
<handlers>
<handler name="ejb-file"/>
</handlers>
</logger>
<logger category="org.jboss">
<level name="DEBUG"/>
<handlers>
<handler name="ejb-file"/>
</handlers>
</logger>
<logger category="org.jboss.remoting">
<level name="DEBUG"/>
<handlers>
<handler name="ejb-file"/>
</handlers>
</logger>
</logging-profile>
</logging-profiles>
- If application is an EAR with several WARs inside:
- Is it enough to include the "Logging-Profile: myLoggingProfile" in the EAR manifest?
- Or is it needed to include the "Logging-Profile: myLoggingProfile" in all the EAR and WARs manifests?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- EAP 6.1+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
