[ https://issues.apache.org/jira/browse/FELIX-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548494 ]
Lucas Galfaso commented on FELIX-428: ------------------------------------- Ok, now I think I got close to the complete picture, but there is still one more thing that I do not understand. <quote> .) The user will have to be aware that if the Log service is installed ... No. The initial Logger is only used for framework logging. If users use it for other things, so what. It is not good, but none of our business. Of course "users" should use LogService if available becase using a LogService has more advantages than just logging. For example the LogService will also log the source bundle of the log message. </quote> Now, the patch would allow a developer to override the method "doLog" and that method will be called up to the point that a LogService is installed. Once a LogService is installed the "doLog" method will no longer be called when the framework logs, so I do not fully understand how this patch fits in your specific needs. > Support Application supplied Logger instance for the framework > -------------------------------------------------------------- > > Key: FELIX-428 > URL: https://issues.apache.org/jira/browse/FELIX-428 > Project: Felix > Issue Type: Improvement > Components: Framework > Reporter: Felix Meschberger > Attachments: FELIX-428.patch > > > In certain environments where the Felix framework is embeded, the environment > may provide a logging facility which should be used by the framework as long > as no OSGi LogService is available. > For example, in Sling we have a web application based launcher, which embeds > the Felix framework in a web application. In this case, it would be usefull > to have the log messages being directed to the ServletContext.log methods > until the LogService is set up. > Will attach a patch to implement this feature. > WDYT ? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.