How to print debug message in JAAS LoginModule

Yaowen Tu yaowen.tu at gmail.com
Thu Dec 13 19:44:56 EST 2012


Thanks it works.

Yaowen



On Thu, Dec 13, 2012 at 12:39 PM, Kevin P. Foote <kpfoote at iup.edu> wrote:

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


More information about the users mailing list