Skip to Content.
Sympa Menu

mace-opensaml-users - Re: Change of logging framework

Subject: OpenSAML user discussion

List archive

Re: Change of logging framework


Chronological Thread 
  • From: "Anil Saldhana" <>
  • To:
  • Subject: Re: Change of logging framework
  • Date: Tue, 6 Nov 2007 09:24:33 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=soo2CJjK9R9yfWpgOC/K0XRE0Ebmq2YLFiT8D0aFLn5hg/jm8sQTZmUUjMTiZ9JuCC24jjW9j0TTOlZyom/0RhyONmv1ouQ2O8QTFxa1M0oaAisIyC+dUawxE764ANxDtpfQv1vwt+O9qzP8pIWBmgqmKIda92a327A2Cxqiw34=

Thanks Chad for the reply. I think slf4j should work fine.

The reference to Class.forName was a general reference to the OpenSAML2 code base (not particularly tied to logging). I remember seeing the usage long ago. I did a fresh scan on the alpha1 tagged workspace and I do not see any usage. So please ignore. :)

Thanks for the good work.

On Nov 5, 2007 11:41 PM, Chad La Joie <> wrote:


Anil Saldhana wrote:
> A question I want to ask is: if my managed server environment (Ex:Java
> EE Application Server) still uses commons-logging/log4J, will I be able
> to use sl4j in that environment just for opensaml2?  Any issues you foresee?

Your best bet is to read up on the documentation for SLF4J.  The short
answer is, yes, this is fine.

> Another issue I want to point is whether it is possible to make use of
> thread context class loader  to create instances rather than
> Class.forName ? This is  required in Java EE environments (due to class
> loaders issue again).

This will depend on the underlying logging system you use.  SLF4J just
binds to some system, so it will depend on what that logging system
does.  SLF4J, itself, does not use Class.forName.

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
, http://www.switch.ch




Archive powered by MHonArc 2.6.16.

Top of Page