Friday, 9 November 2012

How to enable security logging in Jboss 7

To view what's happening within the jboss 7 security subsystem, you need to enable logging of

Assuming standalone.xml, update the <subsystem xmlns="urn:jboss:domain:logging:1.1"> section, adding a new console-handler which deals with TRACE level messages only:

<console-handler name="CONSOLE_TRC">
  <level name="TRACE"/>
    <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>

and link it up to a new org.jboss.securty logger:

<logger category="">
  <level name="TRACE"/>
    <handler name="CONSOLE_TRC"/>

Finally, restart the jboss server :)