You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Xander Uiterlinden (JIRA)" <ji...@apache.org> on 2013/09/12 17:22:53 UTC

[jira] [Work started] (FELIX-4226) Add option to have the dependency manager log against a single BundleContext's LogService.

     [ https://issues.apache.org/jira/browse/FELIX-4226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-4226 started by Xander Uiterlinden.

> Add option to have the dependency manager log against a single BundleContext's LogService.
> ------------------------------------------------------------------------------------------
>
>                 Key: FELIX-4226
>                 URL: https://issues.apache.org/jira/browse/FELIX-4226
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager
>    Affects Versions: dependencymanager-3.1.0
>            Reporter: Xander Uiterlinden
>            Assignee: Xander Uiterlinden
>
> DependencyManager uses the OSGi LogService for it's logging. The LogService is provided per bundle. As a typical application consists of many bundles, many different LogServices will be used by the dependencymanager.
> A common pattern for an application is to implement a LogListener to catch all log events and pass them to a logging framework, e.g. log4j, commons-logging etc. All of these framework have the notion of a logger name or class. This is usually also the element of which the log levels can be configured. In a LogEntry provided by the OSGi logging framework typically only the bundlename makes sense to be used as the logger name/class.
> Due to the fact that an application can have many dependency managers and thus use several different LogServices all tied to their own bundlecontext, this logger name is going to be differ. 
> It would be practical to be able to instruct the dependency manager to log against a single LogService only so the bundle name provided in the log event can also practically be used as a logger name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira