[logback-dev] [JIRA] Created: (LBCLASSIC-179) please add Eclipse Buddy Policy

ekkehard gentz (JIRA) noreply-jira at qos.ch
Tue Jan 5 11:02:33 CET 2010

please add Eclipse Buddy Policy

                 Key: LBCLASSIC-179
                 URL: http://jira.qos.ch/browse/LBCLASSIC-179
             Project: logback-classic
          Issue Type: Improvement
          Components: Other
    Affects Versions: 0.9.18
            Reporter: ekkehard gentz
            Assignee: Logback dev list

if you're using LogBack in an Eclipse Equinox OSGI environment and you write Appenders or Converters then 
must "know" them.
One way is to use a Fragment Bundle with logback.classic as host bundle.

But Fragments are not very flexible and you have to restart your OSGI Framework.
If using Eclipse Equinox as OSGI Framework you can use Eclipse Buddy Policy
read more here: http://wiki.eclipse.org/index.php/Context_Class_Loader_Enhancements

It would be great if you add the following line to MANIFEST.MF of logback.classic bundle:

Eclipse-BuddyPolicy: registered

If running in other OSGI Frameworks like Felix this line will be ignored,
but running Equinox you can now do the following:

my.appender.bundle has Dependency to logback.classic as Required Bundle
and I can add 
Eclipse-RegisterBuddy: logback.classic
Now my Bundle is a Buddy of logback.classic and logback.classic 'knows' my classes

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list