|org.apache.commons.logging: add buddy policy [message #563832]
||Wed, 09 July 2008 22:06
| Peter Friese
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 "commons-logging.properties" on the classpath (e.g. in /src) and add the following line to this property files:
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 http://www.malcom-mac.com/nemo
Powered by FUDForum
. Page generated in 0.10029 seconds