-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for Log4j2 3.0 #521
Comments
Do the preparations also include fixing the "The use of package scanning to locate plugins is deprecated and will be removed in a future release" warnings introduced by LOG4J2-3644 in the PluginManager? They seem to be caused by the code in the PaxLoggingServiceImpl. |
I didn't look at it yet... But scanning and OSGi in the same sentence always give me a headache... |
I only saw these warnings while debugging in Eclipse and not in Karaf. Apparently The PluginManager got completely removed in Log4j 3 in favor of using the ServiceLoader mechanism which may also give headaches. 😉 See: https://logging.apache.org/log4j/3.x/
|
According to log4j 3 release message, it works with regular java service locator. And if it works with service locator, we can build a basic bundle tracker to make it work without Aries spi-fly. WDYT? |
+1 BundleTracker ftw |
Generally +1. The problem I see is that Log4j3's ServiceLocator locates everything when started/loaded. In OSGi, if bundle tracker tracks new bundles with plugins in their So in the end +1 to not use SPI-Fly. However I'm too busy this week to think about reloading consequences ;) |
FYI, I've just fixed #549 by using Pax Logging's own maven plugin to generate |
https://www.mail-archive.com/[email protected]/msg08284.html
The text was updated successfully, but these errors were encountered: