[ https://issues.apache.org/jira/browse/FELIX-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated FELIX-428: ------------------------------------ Attachment: FELIX-428.patch Patch enhancing the Felix and Logger classes as follows: Felix: Add new constructor taking a Logger, which is used if not null. Otherwise a Logger is just created. The log level is set using the new setLogLevel(String) method Logger: Add new default constructor and setter methods for the log level. Also added a protected doLog(int level, String message, Throwable t) method, which may be overwritten by extensions to do environment specifiic logging. The default behaviour is just writing to System.out as before. > 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.