How to enable debug logging for LDAP Extended Module in Wildfly
<p>How can I enable debug/trace logging in WildFly 10 for the <code>LdapExtended</code> module?</p>

<p>The module is created like the following:</p>

<pre><code>&lt;security-domain name="LDAPAuth"&gt;
    &lt;authentication&gt;
        &lt;login-module code="LdapExtended" flag="required"&gt;
            &lt;module-option name="java.naming.provider.url" value="..."/&gt;
            &lt;module-option name="bindDN" value="..."/&gt;
            &lt;module-option name="bindCredential" value="..."/&gt;
            &lt;module-option name="baseCtxDN" value="..."/&gt;
            &lt;!-- ... more configuration goes here --&gt;
        &lt;/login-module&gt;
    &lt;/authentication&gt;
&lt;/security-domain&gt;
</code></pre>

<p>I tried the following configuration but I get no log outputs. My LDAP configuration is not performing the authentication properly and I can't debug.</p>

<pre><code>&lt;subsystem xmlns="urn:jboss:domain:logging:3.0"&gt;
    &lt;!-- ... --&gt;
    &lt;logger category="org.jboss.security"&gt;
        &lt;level name="DEBUG"/&gt;
    &lt;/logger&gt;
    &lt;logger category="com.sun.jndi.ldap"&gt;
        &lt;level name="DEBUG"/&gt;
    &lt;/logger&gt;
&lt;/subsystem&gt;
</code></pre>