Not able to Print logs using SLF4j from Idp

Surinaidu Majji pioneer.suri at gmail.com
Mon Jun 1 02:44:13 EDT 2015


Thank you for your reply Cantor,

If you want to get logging via log4j to work, you drop in a shim that
implements log4j on top of slf4j, which is available from the slf4j project.

-->Initially, I thought that the Shibboleth idp is using Slf4j(I did not
observe log4j-over-slf4j), So i can implement calls of slf4j using log4j to
print the logs in my module.

I went through the links that you have shared with me, i understood the
what is log4j-over-slf4j. But I could not confirm that how to print the
logs in my external module which i have kept as a jar in the
"idp/Web-inf/libs". Please help me to make it work.

Since we are using "ExternalAuthn", We have our servlets to handler the
log-in mechanism, So i made this servlet as a jar file and kep it in
the   "idp/Web-inf/libs"
in tomcat web project.

On Fri, May 29, 2015 at 7:35 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:

> On 5/29/15, 8:02 AM, "users on behalf of Surinaidu Majji" <
> users-bounces at shibboleth.net on behalf of pioneer.suri at gmail.com> wrote:
>
> >We are using Slf4j and implementing slf4j with log4j to print the logs in
> console as well as in the file.The code which we are trying to printing the
> logs from created jar which is placed in the tomcat(idp/Web-Inf/lib) but
> when running the application i am not able to see printing the logs in the
> console.
>
> If you want to get logging via log4j to work, you drop in a shim that
> implements log4j on top of slf4j, which is available from the slf4j project.
>
> You do NOT configure log4j itself, I don't believe.
>
> http://slf4j.org/legacy.html
>
> >Update: I got the following error even i have added dependency
> libs(slf4j-log4j12-1.7.5, log4j along with slf4j):
>
> That implements slf4j calls by using log4j, you want to do the opposite,
> log4j over slf4j.
>
> http://slf4j.org/legacy.html#log4j-over-slf4j
>
>
> -- Scott
>
> --
> 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/20150601/8ab69b2f/attachment.html>


More information about the users mailing list