Replies: 2 comments 4 replies
-
@MSchmidke As of slf4j version 2.0.9, The only restriction is that the specified loader must be loadable by the class loader that loader that loaded |
Beta Was this translation helpful? Give feedback.
-
Setting If you are looking to deploy SLF4J in an OSGi environment without SLM, consider using the PAX Logging bundles. The Remark: since |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm dealing with a RCP/OSGi/Equinox application and currently trying to update to SLF4J2.x.
One big drawback I can see is the move to forcedly use SPI to discover the proper logging adapter. In a normal Java environment this might be very elegant, but with OSGi it introduces such a huge pile of dependencies (at least Apache SpiFly, which in turn comes with a lot of other dependencies), and all of this just to discover that I'm using Log4J.
Is there any way to get around the SPI way and to directly configure the adapter?
(Admittedly, this might require a different build with different dependencies, since the dependencies are what makes my problem, not the missing configuration option)
Any help is appreciated!
Marcus.
Beta Was this translation helpful? Give feedback.
All reactions