Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » PaxLogging across multiple plugins(How to setup a uniform logging service for OSGi bundles)
PaxLogging across multiple plugins [message #1692377] Wed, 15 April 2015 12:04
Piero Campalani is currently offline Piero CampalaniFriend
Messages: 111
Registered: January 2015
Senior Member

Dear expert,

I am having hard times finding updated documentation/help to setup a Pax logger in Eclipse.

Following the instructions in this blog, what I did so far is:

* adding the proper Pax/Equinox bundle dependencies to my project
* telling Eclipse to start the Pax configuration manager in the product configuration
* creating the folders ./confadmin/factories and ./confadmin/services
* adding Log4J configuration instructions in ./confadmin/services/ and added the bundles.configuration.location VM argument in my Run configuration.

Now I can see logging is working fine but there are 2 buts:

i) directives I put in my Log4j configuration file are ignored, although the org.ops4j.pax.configmanager.internal.ConfigurationAdminFacade acknowledges my configuration.
ii) I don't understand how I could use my "Logger" plugin to control/configure logging in other dependening plugins. I want a central logging setup.

Thanks for any help you can provide, I'll keep digging and searching meanwhile.


Previous Topic:E4 Injection/Event System
Next Topic:Part descriptor in Show View dialog
Goto Forum:

Current Time: Fri Dec 15 21:47:28 GMT 2017

Powered by FUDForum. Page generated in 0.02108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software