Hey guys,
The pax-logging-service bundle embeds log4j inside of it, but doesn't export anything. Is this by design? Can we export the log4j classes?
Basically this means that we have all of log4j present in the environment, but other bundles are unable to access its classes if, for example, they want to use classes from packages:
* org.apache.log4j.varia, e.g. to use or extend LevelMatchFilter, or LevelRangeFilter, etc.
* org.apache.log4j.pattern, e.g. to create new pattern converters, etc.
I am OSGifying an applications where one of the modules configures log4j programmatically, and it requires all these items. It ultimately calls Logger.getRootLogger() or Logger.getLogger(...) to get a hold of the actual Logger, so in theory this would wire it to Pax Logging, but it then configures the appenders, patterns, filters, etc. programmatically.
Thanks for your help,
Raúl.