[slf4j-user] SLF4J Implementation Circular Dependency
Todd Orr
torr0101 at gmail.com
Mon Oct 6 00:16:10 CEST 2008
Thanks for the quick response! Unfortunately no. I'm not in an OSGI
environment. We're trying to take existing company applications that
are using logback via slf4j and have them use our internal
implementation which uses spring for configuration. Thanks though.
On Sun, Oct 5, 2008 at 6:00 PM, ekkehard <ekkehard at gentz-software.de> wrote:
> Todd Orr schrieb:
>> My logging implementation uses Spring for declariative configuration.
>> I've been trying to implement an slf4j adapter that delegates to my
>> implementation. However, since Spring uses JCL (I think) and projects
>> that already use jcl-over-sl4jf will load the SLF4J implementation I
>> get in an chicken/egg situation. I can't load my implementation since
>> Spring logs during its own initialization. This logging calls jcl,
>> which delegates to the slf4j implementation which makes everything
>> really messy.
>>
>> Does anyone have any ideas as to how I might circumvent this?
>>
>> Thanks,
>> T
>> _______________________________________________
>> user mailing list
>> user at slf4j.org
>> http://www.slf4j.org/mailman/listinfo/user
>>
>>
> todd,
> are you using it in an OSGI environment ?
> then you can start the bundle with your implementation with a lower
> start-level
> and jcl-over-slf4j will use your slf4j impl.
> I'm running logback as slf4j implementation and am also using bundles
> with jcl-over-slf4j, log4j-over-slf4j and jul-to-slf4j
>
> if you're not under OSGI then I cannot help you
>
> ekke
> _______________________________________________
> user mailing list
> user at slf4j.org
> http://www.slf4j.org/mailman/listinfo/user
>
More information about the slf4j-user
mailing list