Thanks it works.<br><br clear="all"><div>Yaowen</div><br>
<br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 12:39 PM, Kevin P. Foote <span dir="ltr">&lt;<a href="mailto:kpfoote@iup.edu" target="_blank">kpfoote@iup.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
When ever Im making an add on to the shib-idp I&#39;ve included the following<br>
<br>
import org.slf4j.Logger;<br>
import org.slf4j.LoggerFactory;<br>
<br>
And then created my logger<br>
<br>
   /** Class logger. */<br>
    private final Logger log =<br>
LoggerFactory.getLogger(SomethingCool.class);<br>
<br>
Then just up the logging in the logging.xml file<br>
<br>
   &lt;!-- Logs @ DEBUG level --&gt;<br>
    &lt;logger name=&quot;edu.iup.shib&quot;&gt;<br>
        &lt;level value=&quot;DEBUG&quot; /&gt;<br>
    &lt;/logger&gt;<br>
<br>
<br>
This seems to work for me on all my addons etc..<br>
<br>
------<br>
thanks<br>
  kevin.foote<br>
<br>
On Thu, 13 Dec 2012, Yaowen Tu wrote:<br>
<br>
-&gt; Hi,<br>
-&gt;<br>
-&gt; I am implementing my JAAS LoginModule, and in it I want to log some debug<br>
-&gt; message, but it seems that idp-process.log doesn&#39;t contain them.<br>
-&gt;<br>
-&gt; Here is some sample code:<br>
-&gt;<br>
-&gt; *private* *static* *final* *Logger* *log* = *LoggerFactory*<br>
-&gt; .getLogger(SampleLoginModule.*class*);<br>
-&gt;<br>
-&gt;<br>
-&gt;<br>
-&gt;     @Override<br>
-&gt;<br>
-&gt;     *public* *void* initialize( Subject subject, CallbackHandler<br>
-&gt; callbackHandler, Map&lt;String,?&gt; sharedState, Map&lt;String,?&gt; options )<br>
-&gt;<br>
-&gt;     {<br>
-&gt;<br>
-&gt;         *log*.debug(&quot;Start initializing IdapiLoginModule.&quot;);<br>
-&gt;<br>
-&gt;         ....<br>
-&gt;<br>
-&gt; Should I change any configuration in order to make it work?<br>
-&gt;<br>
-&gt; Thanks,<br>
-&gt; Yaowen<br>
-&gt;<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div><br>