Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. TRACE Logging
- Open the
$JBOSS_HOME/server/$PROFILE/conf/jboss-log4j.xml - Add the following to enable full TRACE logging for
org.jboss.security:<category name="org.jboss.security"> <priority value="TRACE"/> </category>
<category name="org.jboss.security"> <priority value="TRACE"/> </category>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Optionally allow additional logging for the
com.sun.security.auth.module.Krb5LoginModulelogin module. To do so, set thedebugoption totrue:<module-option name="debug">true</module-option>
<module-option name="debug">true</module-option>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the system property
-Dsun.security.krb5.debug=trueto get verbose output of the entire GSSAPI negotiation process.
3.1. Configuring Message Tracing Copia collegamentoCollegamento copiato negli appunti!
org.jboss.security.negotiation.MessageTrace. If you enable TRACE logging for this category, all request and response messages are logged at the TRACE level in both Hex and in Base64 encoding.
Example 3.1. Configuration for tracking all messages
<category name="org.jboss.security.negotiation.MessageTrace"> <priority value="TRACE"/> </category>
<category name="org.jboss.security.negotiation.MessageTrace">
<priority value="TRACE"/>
</category>
.Request or .Response to the category value.
Example 3.2. Configuration for tracking only request messages (messages are logged in both Hex and Base64)
<category name="org.jboss.security.negotiation.MessageTrace.Request"> <priority value="TRACE"/> </category>
<category name="org.jboss.security.negotiation.MessageTrace.Request">
<priority value="TRACE"/>
</category>
Example 3.3. Configuration for tracking only response messages (messages are logged in both Hex and Base 64)
<category name="org.jboss.security.negotiation.MessageTrace.Response"> <priority value="TRACE"/> </category>
<category name="org.jboss.security.negotiation.MessageTrace.Response">
<priority value="TRACE"/>
</category>
.Hex or .Base64 to the category value.
Example 3.4. Message tracking with defined encoding