felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: [Discuss] Do we need to support other logging frameworks in felix framework?
Date Mon, 27 Feb 2017 12:56:39 GMT
Karl Pauls wrote
>>> Yeah, something like this sounds like the way to go. I was wondering
>>> if it isn't a possibility to overload the init() method on the system
>>> bundle to optionally accept a logging object of some kind...
>> I think that's already too late. You want to have logging starting with
>> the FrameworkFactory which creates the framework/system bundle.
>> And I think this should not be part of the normal o.o.framework package,
>> but rather just be part of o.o.framework.launch
> The init method is defined in the Framework interface which is in
> o.o.framework.launch.

Sure, but as you where saying system "bundle"... :)

> Regarding the too late - its possible but in the case of Felix we do
> almost nothing before init isn't called (and iirc, the framework
> interface doesn't allow much either before that) but ymmv :-)
Now, I guess an implementation can do whatever it wants within
FrameworkFactory until it returns a Framework object and in general I
guess you want logging there.



Carsten Ziegeler
Adobe Research Switzerland

View raw message