dev@glassfish.java.net

Re: slf4j as Glassfish OSGi module

From: Ceki Gulcu <ceki_at_qos.ch>
Date: Fri, 30 Oct 2009 16:29:11 +0100

Have a look at the SLF4J manual at http://slf4j.org/manual.html, in particular
the section entitled "Binding with a logging framework at deployment time" which
explains how discovery is done.



Sahoo wrote:
> Does sljf4j not use Service lookup to locate log implementations? Can
> you please tell us how it discovers log implementations and why bundling
> those two artifacts together affects the discovery process? Yes, we know
> slf4j is in central repo, but we have a requirement in GlassFish project
> to build external code in our own environment, hence we are promoting
> our own binaries.
>
> Sahoo
>
> Ceki Gulcu wrote:
>> Hello all,
>>
>>
>> Just wanted to observe that combining slf4j-api and slf4j-jdk14 in a
>> single module will prevent slf4j from being able to use any logging
>> framework other that j.u.l. within Glassfish, which partially defeats
>> the purpose of SLF4J as a logging abstraction. Is keeping the slf4j
>> artifacts split an option?
>>
>> btw. 1.5.9.RC1 is already available in the central maven repository.
>>
>> Cheers,
>>

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch