Skip navigation links

Package org.apache.log4j

While pax-logging-api bundle exports org.apache.log4j package (and makes some methods no-op), pax-logging-service bundle has to Private-Package some of the classes from the same package.

See: Description

Package org.apache.log4j Description

While pax-logging-api bundle exports org.apache.log4j package (and makes some methods no-op), pax-logging-service bundle has to Private-Package some of the classes from the same package.

Normally classes from this package will be loaded using OSGi import from pax-logging-api bundle, but when needed, some classes from original log4j:log4j JAR have to be shaded here (and not exported).

This is especially important for org.apache.log4j.Logger class itself - pax-logging-api exports this class to be used as API of Log4J1, but pax-logging-service has to use own (and unchanged - except when fixing some performance/synchronization issues) copy from log4j:log4j. But also other classes from this package have to be shaded. General rule is - if pax-logging-api changes some class from Log4J1 (usually to no-op some methods), pax-logging-service should use own copy.

Skip navigation links

Copyright © 2006–2019 OPS4J - Open Participation Software for Java. All rights reserved.