Package de.mnl.osgi.log4j2osgi

This package provides a binding of log4j to OSGi logging. The implementation uses the same core code as the Logging Facade for OSGi (LF4OSGi). It's just another type of logger that acts as facade for the OSGi logger.

Simply install this bundle in addition to de.mnl.osgi.lf4j and you can use the log4j LogManager as you're used to. As this implementation shares everything "behind the facade" with LFOSGi, it also shares its configuration options.

Starting with version 1.1.0, the log4j provider is registered as service and found and added by the log4j utility class for OSGi.