Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orbit » org.apache.commons.logging: add buddy policy
org.apache.commons.logging: add buddy policy [message #563832] Wed, 09 July 2008 22:06
Peter Friese is currently offline Peter FrieseFriend
Messages: 30
Registered: July 2009

I want to use commons logging in conjunction with a home-grown custom logger that logs to the Eclipse Log.

My logger (public class PDELogger implements org.apache.commons.logging.Log) is located in a dedicated bundle. In order to be picked up by commons logging, the following steps have to be taken:

1) Add "Eclipse-BuddyPolicy: registered" to org.apache.commons.logging/META-INF/MANIFEST.MF
2) Add "Eclipse-RegisterBuddy: org.apache.commons.logging" to org.eclipse.xtext.pdelogger/META-INF/MANIFEST.MF

3) In one of your other bundles, add "Eclipse-RegisterBuddy: org.apache.commons.logging" to your manifest file.
4) In the same bundle, create a file "" on the classpath (e.g. in /src) and add the following line to this property files:
org.apache.commons.logging.Log=org.eclipse.xtext.pdelogger.P DELogger

That's it.

Currently, I am using my own copy of commons logging, containing a patched manifest file. Hiwever, I'd like to avoid having to copy'n'patch orbit bundles.

I know this issue has been discussed a lot, but still: is there any chance to have commons logging modified accordingly in the orbit?

I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at
Previous Topic:Orbit update site?
Next Topic:Orbit packages with versions]
Goto Forum:

Current Time: Mon Oct 25 15:09:42 GMT 2021

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

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

Back to the top