Change the logging level on your site

Set the logging level appropriately to enable logging in vamessages.log.

  1. Edit $RUNTIME/jboss/bin/jboss-cli.sh to enable logging in vamessages.log.
    Note: You need not restart the site for JBoss to pick up these changes.
  2. To change log levels, as a root user, perform the following:
    1. To enable debug logging, run the following command: /subsystem=logging/root-logger=ROOT:change-root-log-level(level=DEBUG)
    2. To disable debug logging, run the following command: /subsystem=logging/root-logger=ROOT:change-root-log-level(level=INFO)
  3. To change log levels using your LDAP credentials, perform the following:
    1. To enable debug logging, run the following command: /subsystem=logging/logger=com.vasoftware:write-attribute(name="level", value="DEBUG")
    2. To disable debug logging, run the following command: /subsystem=logging/logger=com.vasoftware:write-attribute(name="level", value="INFO")
    3. To enable trace logging for LDAP, run the following command: /subsystem=logging/logger=org.jboss.security.auth.spi.LdapExtLoginModule:add(level=TRACE,handlers=["VAFILE"])
    4. To disable trace logging for LDAP, run the following command: /subsystem=logging/logger=org.jboss.security.auth.spi.LdapExtLoginModule:remove()
    Tip: The LDAP debug output will be very limited unless you add <module-option name="throwValidateErrors" value="true"></>to the entry for the corresponding log-in module.