Enabling EJB Debug/Trace logging in JBoss EAP 8 / 7 / 6
Environment
- Red Hat Enterprise Application Platform (EAP)
- 8
- 7
- 6
Issue
Enabling EJB and security Debug/Trace logging in JBoss EAP 7 / 6
Resolution
In the JBoss EAP profile (standalone*.xml / domain.xml) logging subsystem, enable these categories as such:
<logger category="org.jboss.ejb.client">
<level name="DEBUG"/>
</logger>
<logger category="org.wildfly.transaction.client">
<level name="DEBUG"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="org.jboss.remoting.remote">
<level name="TRACE"/>
</logger>
<logger category="org.jboss.security">
<level name="ALL"/>
</logger>
<logger category="org.jboss.as.security">
<level name="ALL"/>
</logger>
<logger category="org.keycloak">
<level name="TRACE"/>
</logger>
<logger category="org.picketbox">
<level name="ALL"/>
</logger>
<logger category="org.wildfly.security">
<level name="ALL"/>
</logger>
<logger category="org.wildfly.elytron">
<level name="ALL"/>
</logger>
<logger category="org.jboss.remoting">
<level name="ALL"/>
</logger>
<logger category="org.jboss.sasl">
<level name="ALL"/>
</logger>
<logger category="org.jboss.ejb">
<level name="ALL"/>
</logger>
<logger category="org.jboss.as.ejb3">
<level name="ALL"/>
</logger>
<logger category="org.wildfly.discovery">
<level name="ALL"/>
</logger>
<logger category="org.wildfly.naming">
<level name="ALL"/>
</logger>
The table below presents what enabling tracing exposes for each subsystem:
| Subsystem | What it will show |
|---|---|
org.jboss.remoting.remote | For remoting ejb connections, it can show heartbeat |
The levels of log are presented on the table below (and on the JBoss EAP 7 Configuration Guide):
| Log Level | Number of characters |
|---|---|
| ALL | set min number of characters |
| FINEST | 300 |
| FINER | 400 |
| TRACE | 400 |
| DEBUG | 500 |
| FINE | 500 |
| CONFIG | 700 |
| INFO | 800 |
| WARN | 900 |
| WARNING | 900 |
| ERROR | 1000 |
| SEVERE | 1000 |
| FATAL | 1000 |
| OFF | Does not display any log message. |
Related Solution
Enabling security Debug/Trace logging in JBoss EAP 6 or 7
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.